blob: 297c082e53f6e77b336cf7404487f026a10f4d99 [file] [log] [blame]
import QtQuick 2.0
import QtTest 1.0
import QtWebKit 3.0
import "../common"
TestWebView {
id: webView
width: 200
height: 400
TestCase {
name: "WebViewLoadHtml"
function test_loadProgressAfterLoadHtml() {
compare(webView.loadProgress, 0)
webView.loadHtml("<html><head><title>Test page 1</title></head><body>Hello.</body></html>")
verify(webView.waitForLoadSucceeded())
compare(webView.loadProgress, 100)
}
}
}