@@ -154,7 +154,7 @@ Rectangle {
154154 function init() {
155155 stageSaver.clear();
156156
157− tryCompare(topSurfaceList, "count", 0);
157+ tryCompare(topLevelSurfaceList, "count", 0);
158158
159159 // wait for Stage to stabilize back into its initial state
160160 var appRepeater = findChild(stage, "appRepeater");
@@ -278,11 +278,11 @@ Rectangle {
278278 }
279279
280280 // Launch one of the available apps in this test case
281− // Return the topSurfaceList's ID for the launched app
281+ // Return the topLevelSurfaceList's ID for the launched app
282282 // Valid values are: "morph", "gallery", "dialer", and "facebook"
283283 // "facebook" will be launched if no name is given
284284 function launchApp(appName) {
285− var nextAppId = topSurfaceList.nextId;
285+ var nextAppId = topLevelSurfaceList.nextId;
286286 switch (appName) {
287287 case "morph":
288288 webbrowserCheckBox.checked = true;
@@ -450,6 +450,7 @@ Rectangle {
450450 compare(dialerDelegate.stage, ApplicationInfoInterface.SideStage);
451451
452452 var facebookSurfaceId = launchApp("facebook");
453+ var facebookApp = ApplicationManager.findApplication(facebookCheckBox.appId);
453454 facebookCheckBox.checked = true;
454455 waitUntilAppSurfaceShowsUp(facebookSurfaceId);
455456
@@ -492,6 +493,7 @@ Rectangle {
492493 compare(webbrowserDelegate.stage, ApplicationInfoInterface.MainStage);
493494
494495 var dialerSurfaceId = launchApp("dialer");
496+ var dialerApp = ApplicationManager.findApplication(dialerCheckBox.appId);
495497 dialerCheckBox.checked = true;
496498 waitUntilAppSurfaceShowsUp(dialerSurfaceId);
497499
@@ -683,11 +685,11 @@ Rectangle {
683685 */
684686 function test_selectSuspendedAppWithoutSurface() {
685687 launchApp("facebook");
686− compare(topSurfaceList.applicationAt(0).appId, "facebook-webapp");
687− var facebookSurfaceId = topSurfaceList.idAt(0);
688− var facebookWindow = topSurfaceList.windowAt(0);
688+ compare(topLevelSurfaceList.applicationAt(0).appId, "facebook-webapp");
689+ var facebookSurfaceId = topLevelSurfaceList.idAt(0);
690+ var facebookWindow = topLevelSurfaceList.windowAt(0);
689691
690− var webbrowserSurfaceId = topSurfaceList.nextId;
692+ var webbrowserSurfaceId = topLevelSurfaceList.nextId;
691693 launchApp("morph");
692694
693695 webbrowserCheckBox.checked = true;