on xenial help sign in
don't change expectations for maximized apps (that are also fullscreen)
commitd280aa17be9fbc707e4377f874fea5cafe1b3ea4 authorLukáš Tinkl <lukas.tinkl@canonical.com> dateFri 20 Nov 2015, 17:08 (11 years ago) parent8025077
1 file changed+6−6
tests/qmltests/Stages/tst_DesktopStage.qml+6−6
tests/qmltests/Stages/tst_DesktopStage.qml+6−6
@@ -353,26 +353,26 @@ Item {
353353 function test_maximizeApplicationHidesSurfacesBehindIt() {
354354 var dashApp = startApplication("unity8-dash");
355355 var dialerApp = startApplication("dialer-app");
356− var cameraApp = startApplication("camera-app");
356+ var gmailApp = startApplication("gmail-webapp");
357357
358358 var dashDelegate = findChild(desktopStage, "appDelegate_unity8-dash");
359359 verify(dashDelegate);
360360 var dialerDelegate = findChild(desktopStage, "appDelegate_dialer-app");
361361 verify(dialerDelegate);
362− var cameraDelegate = findChild(desktopStage, "appDelegate_camera-app");
363− verify(cameraDelegate);
362+ var gmailDelegate = findChild(desktopStage, "appDelegate_gmail-webapp");
363+ verify(gmailDelegate);
364364
365365 // maximize
366366 dialerDelegate.maximize();
367367 tryCompare(dialerDelegate, "visuallyMaximized", true);
368368
369369 tryCompare(dashApp.session.surface, "visible", false);
370− compare(cameraApp.session.surface.visible, true);
370+ compare(gmailApp.session.surface.visible, true);
371371
372372 // restore
373373 dialerDelegate.restoreFromMaximized();
374− compare(dashApp.session.surface.visible, false); // dash is occluded by the fullscreen camera ;)
375− compare(cameraApp.session.surface.visible, true);
374+ compare(dashApp.session.surface.visible, true);
375+ compare(gmailApp.session.surface.visible, true);
376376 }
377377
378378 function test_applicationsBecomeVisibleWhenOccludingAppRemoved() {