@@ -586,21 +586,17 @@ Rectangle {
586 webbrowserCheckBox.checked = true;
586 webbrowserCheckBox.checked = true;
587 waitUntilAppSurfaceShowsUp(webbrowserSurfaceId);
587 waitUntilAppSurfaceShowsUp(webbrowserSurfaceId);
589− print("browser should be focused now")
592 var appDelegate = findChild(stage, "appDelegate_" + webbrowserSurfaceId);
589 var appDelegate = findChild(stage, "appDelegate_" + webbrowserSurfaceId);
593 verify(appDelegate);
590 verify(appDelegate);
591+ waitForRendering(stage);
594 compare(appDelegate.stage, ApplicationInfoInterface.MainStage);
592 compare(appDelegate.stage, ApplicationInfoInterface.MainStage);
596 dragToSideStage(webbrowserSurfaceId);
594 dragToSideStage(webbrowserSurfaceId);
598− var spreadView = findChild(stageLoader, "spreadView")
599− tryCompare(spreadView, "surfaceDragging", false);
600 tryCompare(appDelegate, "stage", ApplicationInfoInterface.SideStage);
596 tryCompare(appDelegate, "stage", ApplicationInfoInterface.SideStage);
603− function test_unloadSideStageByDraggingFromStageStage() {
599+ function test_unloadSideStageByDraggingFromSideStage() {
604 sideStage.showNow();
600 sideStage.showNow();
605 WindowStateStorage.saveStage(webbrowserCheckBox.appId, ApplicationInfoInterface.SideStage)
601 WindowStateStorage.saveStage(webbrowserCheckBox.appId, ApplicationInfoInterface.SideStage)
606 var webbrowserSurfaceId = topSurfaceList.nextId;
602 var webbrowserSurfaceId = topSurfaceList.nextId;
@@ -609,6 +605,7 @@ Rectangle {
610 var appDelegate = findChild(stage, "appDelegate_" + webbrowserSurfaceId);
606 var appDelegate = findChild(stage, "appDelegate_" + webbrowserSurfaceId);
611 verify(appDelegate);
607 verify(appDelegate);
608+ waitForRendering(stage);
612 compare(appDelegate.stage, ApplicationInfoInterface.SideStage);
609 compare(appDelegate.stage, ApplicationInfoInterface.SideStage);
614 dragToMainStage(webbrowserSurfaceId);
611 dragToMainStage(webbrowserSurfaceId);