@@ -302,7 +302,6 @@ Item {
302302 }
303303
304304 function test_tryOpenNullPreview() {
305− var originalScopeId = genericScopeView.scope.id;
306305 genericScopeView.scope = scopes.getScope("NullPreviewScope");
307306
308307 tryCompareFunction(function() {
@@ -324,7 +323,10 @@ Item {
324323 tryCompare(testCase.subPageLoader, "open", false);
325324 tryCompare(testCase.subPageLoader, "visible", false);
326325
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);
328330 }
329331
330332 function test_showPreviewCarousel() {