summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativewebview/data/newwindows.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/qdeclarativewebview/data/newwindows.qml')
-rw-r--r--tests/auto/declarative/qdeclarativewebview/data/newwindows.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/declarative/qdeclarativewebview/data/newwindows.qml b/tests/auto/declarative/qdeclarativewebview/data/newwindows.qml
index 4d9df43..5f9f757 100644
--- a/tests/auto/declarative/qdeclarativewebview/data/newwindows.qml
+++ b/tests/auto/declarative/qdeclarativewebview/data/newwindows.qml
@@ -23,8 +23,8 @@ Grid {
newWindowParent: pages
url: "newwindows.html"
Timer {
- interval: 10; running: webView.status==WebView.Ready && total<4; repeat: false;
- onTriggered: {total++; webView.evaluateJavaScript("clickTheLink()")}
+ interval: 10; running: total<4; repeat: false;
+ onTriggered: { if (webView.status==WebView.Ready) { total++; webView.evaluateJavaScript("clickTheLink()") } }
}
}
}