@@ -25,6 +25,7 @@ import Utils 0.1
25import ".." // For EdgeBarrierControls
25import ".." // For EdgeBarrierControls
26import "../../../qml/Stages"
26import "../../../qml/Stages"
27import "../../../qml/Components"
27import "../../../qml/Components"
28+import "../../../qml/Components/PanelState"
@@ -500,5 +501,33 @@ Item {
500 tryCompare(dialerAppDelegate, "visible", true);
501 tryCompare(dialerAppDelegate, "visible", true);
501 tryCompare(facebookAppDelegate, "visible", false);
502 tryCompare(facebookAppDelegate, "visible", false);
505+ function test_dropShadow() {
506+ killAllRunningApps();
508+ // verify the drop shadow is not visible initially
509+ verify(PanelState.dropShadow == false);
511+ // start an app, maximize it
512+ var facebookApp = startApplication("facebook-webapp");
513+ var facebookAppDelegate = findChild(desktopStage, "appDelegate_facebook-webapp");
514+ facebookAppDelegate.maximize();
516+ // verify the drop shadow is still not visible
517+ verify(PanelState.dropShadow == false);
519+ // start a foreground app, not maximized
520+ var dialerApp = startApplication("dialer-app");
521+ var dialerAppDelegate = findChild(desktopStage, "appDelegate_dialer-app");
523+ // verify the drop shadow becomes visible
524+ verify(PanelState.dropShadow == true);
526+ // close the maximized app
527+ ApplicationManager.stopApplication("facebook-webapp");
529+ // verify the drop shadow is gone
530+ verify(PanelState.dropShadow == false);