summaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qmltests/data/tst_loadUrl.qml
diff options
context:
space:
mode:
authorPeter Varga <pvarga@inf.u-szeged.hu>2014-10-21 13:50:27 +0200
committerPeter Varga <pvarga@inf.u-szeged.hu>2014-11-06 16:31:24 +0100
commit0b5a7d6132164994221fd83f70e705772337137e (patch)
tree3e10dcaa2f0b120d9fc62c9da1e1c1fe455d9444 /tests/auto/quick/qmltests/data/tst_loadUrl.qml
parent7a9ed4f2582815273b8ae9398dcddab4a8a9114b (diff)
Disable error page while testing loadFail signal of Quick API
Error page should be disabled while testing loadFail signal since testing signals of the internal error page is not possible yet. Change-Id: I07f0bb6378fcbf5d18634197808801c94606803c Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Diffstat (limited to 'tests/auto/quick/qmltests/data/tst_loadUrl.qml')
-rw-r--r--tests/auto/quick/qmltests/data/tst_loadUrl.qml5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/auto/quick/qmltests/data/tst_loadUrl.qml b/tests/auto/quick/qmltests/data/tst_loadUrl.qml
index 5f51e9036..e0e185eb0 100644
--- a/tests/auto/quick/qmltests/data/tst_loadUrl.qml
+++ b/tests/auto/quick/qmltests/data/tst_loadUrl.qml
@@ -42,6 +42,7 @@
import QtQuick 2.0
import QtTest 1.0
import QtWebEngine 1.0
+import QtWebEngine.experimental 1.0
TestWebEngineView {
id: webEngineView
@@ -106,6 +107,8 @@ TestWebEngineView {
}
function test_urlProperty() {
+ WebEngine.settings.errorPageEnabled = false
+
var url = Qt.resolvedUrl("test1.html")
webEngineView.url = url
@@ -117,7 +120,7 @@ TestWebEngineView {
webEngineView.url = bogusSite
compare(webEngineView.url, bogusSite)
verify(webEngineView.waitForLoadFailed())
- compare(webEngineView.url, bogusSite)
+ compare(webEngineView.url, url)
webEngineView.url = "about:blank" // Reset from previous test
verify(webEngineView.waitForLoadSucceeded())