@@ -302,7 +302,6 @@ Item {
304 function test_tryOpenNullPreview() {
304 function test_tryOpenNullPreview() {
305− var originalScopeId = genericScopeView.scope.id;
306 genericScopeView.scope = scopes.getScope("NullPreviewScope");
305 genericScopeView.scope = scopes.getScope("NullPreviewScope");
308 tryCompareFunction(function() {
307 tryCompareFunction(function() {
@@ -324,7 +323,10 @@ Item {
324 tryCompare(testCase.subPageLoader, "open", false);
323 tryCompare(testCase.subPageLoader, "open", false);
325 tryCompare(testCase.subPageLoader, "visible", false);
324 tryCompare(testCase.subPageLoader, "visible", false);
327− genericScopeView.scope = scopes.getScope(originalScopeId)
326+ mousePress(tile, tile.width / 2, tile.height / 2);
327+ tryCompare(testCase.subPageLoader, "open", false);
328+ tryCompare(testCase.subPageLoader, "visible", false);
329+ mouseRelease(tile, tile.width / 2, tile.height / 2);
330 function test_showPreviewCarousel() {
332 function test_showPreviewCarousel() {