@@ -516,8 +516,6 @@ Rectangle {
516 compare(shell.transformRotationAngle, root.primaryOrientationAngle);
516 compare(shell.transformRotationAngle, root.primaryOrientationAngle);
519−/* Flaky in adt and cannot reproduce locally. Given the deadline I won't risk this getting stuck in proposed.
520− Adding a skip() seems to fail this nevertheless for accessing a null object
521 function test_appSupportingOnlyPrimaryOrientationWillOnlyRotateInLandscape_data() {
519 function test_appSupportingOnlyPrimaryOrientationWillOnlyRotateInLandscape_data() {
523 {tag: "manta", deviceName: "manta"},
521 {tag: "manta", deviceName: "manta"},
@@ -538,25 +536,25 @@ Rectangle {
538 compare(dashApp.stage, ApplicationInfoInterface.MainStage);
536 compare(dashApp.stage, ApplicationInfoInterface.MainStage);
540 tryCompareFunction(function(){return dashApp.session.lastSurface != null;}, true);
538 tryCompareFunction(function(){return dashApp.session.lastSurface != null;}, true);
541− verify(checkAppSurfaceOrientation(dashAppWindow, dashApp, root.primaryOrientationAngle));
540+ tryCompareFunction(function(){return checkAppSurfaceOrientation(dashAppWindow, dashApp, root.primaryOrientationAngle)}, true);
543 compare(shell.transformRotationAngle, root.primaryOrientationAngle);
541 compare(shell.transformRotationAngle, root.primaryOrientationAngle);
544 rotateTo(90);
543 rotateTo(90);
546− verify(checkAppSurfaceOrientation(dashAppWindow, dashApp, root.primaryOrientationAngle));
545+ tryCompareFunction(function(){return checkAppSurfaceOrientation(dashAppWindow, dashApp, root.primaryOrientationAngle)}, true);
547 compare(shell.transformRotationAngle, root.primaryOrientationAngle);
546 compare(shell.transformRotationAngle, root.primaryOrientationAngle);
549 rotateTo(180);
548 rotateTo(180);
551− verify(checkAppSurfaceOrientation(dashAppWindow, dashApp, root.primaryOrientationAngle + 180));
550+ tryCompareFunction(function(){return checkAppSurfaceOrientation(dashAppWindow, dashApp, root.primaryOrientationAngle + 180)}, true);
552 compare(shell.transformRotationAngle, root.primaryOrientationAngle + 180);
551 compare(shell.transformRotationAngle, root.primaryOrientationAngle + 180);
554 rotateTo(270);
553 rotateTo(270);
556− verify(checkAppSurfaceOrientation(dashAppWindow, dashApp, root.primaryOrientationAngle + 180));
555+ tryCompareFunction(function(){return checkAppSurfaceOrientation(dashAppWindow, dashApp, root.primaryOrientationAngle + 180)}, true);
557 compare(shell.transformRotationAngle, root.primaryOrientationAngle + 180);
556 compare(shell.transformRotationAngle, root.primaryOrientationAngle + 180);
561 function test_greeterRemainsInPrimaryOrientation_data() {
559 function test_greeterRemainsInPrimaryOrientation_data() {