on xenial help sign in
don't change expectations for maximized apps (that are also fullscreen)
d280aa1Lukáš Tinkl
tests/qmltests/Stages/tst_DesktopStage.qml+6−6
@@ -353,26 +353,26 @@ Item {
353 function test_maximizeApplicationHidesSurfacesBehindIt() {
353 function test_maximizeApplicationHidesSurfacesBehindIt() {
354 var dashApp = startApplication("unity8-dash");
354 var dashApp = startApplication("unity8-dash");
355 var dialerApp = startApplication("dialer-app");
355 var dialerApp = startApplication("dialer-app");
356− var cameraApp = startApplication("camera-app");
356+ var gmailApp = startApplication("gmail-webapp");
357
357
358 var dashDelegate = findChild(desktopStage, "appDelegate_unity8-dash");
358 var dashDelegate = findChild(desktopStage, "appDelegate_unity8-dash");
359 verify(dashDelegate);
359 verify(dashDelegate);
360 var dialerDelegate = findChild(desktopStage, "appDelegate_dialer-app");
360 var dialerDelegate = findChild(desktopStage, "appDelegate_dialer-app");
361 verify(dialerDelegate);
361 verify(dialerDelegate);
362− var cameraDelegate = findChild(desktopStage, "appDelegate_camera-app");
362+ var gmailDelegate = findChild(desktopStage, "appDelegate_gmail-webapp");
363− verify(cameraDelegate);
363+ verify(gmailDelegate);
364
364
365 // maximize
365 // maximize
366 dialerDelegate.maximize();
366 dialerDelegate.maximize();
367 tryCompare(dialerDelegate, "visuallyMaximized", true);
367 tryCompare(dialerDelegate, "visuallyMaximized", true);
368
368
369 tryCompare(dashApp.session.surface, "visible", false);
369 tryCompare(dashApp.session.surface, "visible", false);
370− compare(cameraApp.session.surface.visible, true);
370+ compare(gmailApp.session.surface.visible, true);
371
371
372 // restore
372 // restore
373 dialerDelegate.restoreFromMaximized();
373 dialerDelegate.restoreFromMaximized();
374− compare(dashApp.session.surface.visible, false); // dash is occluded by the fullscreen camera ;)
374+ compare(dashApp.session.surface.visible, true);
375− compare(cameraApp.session.surface.visible, true);
375+ compare(gmailApp.session.surface.visible, true);
376 }
376 }
377
377
378 function test_applicationsBecomeVisibleWhenOccludingAppRemoved() {
378 function test_applicationsBecomeVisibleWhenOccludingAppRemoved() {