summaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qmltests/data/TestWebEngineView.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/quick/qmltests/data/TestWebEngineView.qml')
-rw-r--r--tests/auto/quick/qmltests/data/TestWebEngineView.qml10
1 files changed, 0 insertions, 10 deletions
diff --git a/tests/auto/quick/qmltests/data/TestWebEngineView.qml b/tests/auto/quick/qmltests/data/TestWebEngineView.qml
index 35d321cf2..34fc5fb2f 100644
--- a/tests/auto/quick/qmltests/data/TestWebEngineView.qml
+++ b/tests/auto/quick/qmltests/data/TestWebEngineView.qml
@@ -29,11 +29,9 @@
import QtQuick 2.0
import QtTest 1.0
import QtWebEngine 1.2
-import QtWebEngine.experimental 1.0
WebEngineView {
property var loadStatus: null
- property var viewportReady: false
property bool windowCloseRequestedSignalEmitted: false
function waitForLoadSucceeded() {
@@ -41,12 +39,6 @@ WebEngineView {
loadStatus = null
return success
}
- function waitForViewportReady() {
- // Note: You need to have "when: windowShown" in your TestCase for this to work.
- // The viewport is locked until the first frame is rendered, and the rendering isn't
- // activated until the WebView is visible in a mapped QQuickView.
- return _waitFor(function() { return viewportReady })
- }
function waitForLoadFailed() {
var failure = _waitFor(function() { return loadStatus == WebEngineView.LoadFailedStatus })
loadStatus = null
@@ -74,8 +66,6 @@ WebEngineView {
onLoadingChanged: {
loadStatus = loadRequest.status
- if (loadRequest.status == WebEngineView.LoadStartedStatus)
- viewportReady = false
}
onWindowCloseRequested: {