[Qt] QDesktopWebView load zero size view test missing

https://bugs.webkit.org/show_bug.cgi?id=68655

Patch by Gopal Raghavan <gopal.1.raghavan@nokia.com> on 2011-09-27
Reviewed by Chang Shu.

Added test case to check load behavior with zero size view.

* UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_loadZeroSizeView.qml: Added.
* UIProcess/API/qt/tests/qmltests/qmltests.pro:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96145 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 8c1d52fb
2011-09-27 Gopal Raghavan <gopal.1.raghavan@nokia.com>
[Qt] QDesktopWebView load zero size view test missing
https://bugs.webkit.org/show_bug.cgi?id=68655
Reviewed by Chang Shu.
Added test case to check load behavior with zero size view.
* UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_loadZeroSizeView.qml: Added.
* UIProcess/API/qt/tests/qmltests/qmltests.pro:
2011-09-27 Carlos Garcia Campos <cgarcia@igalia.com>
[GTK] Use WebKitWebContext in WebKitWebView
......
import QtQuick 2.0
import QtTest 1.0
import QtWebKit.experimental 5.0
DesktopWebView {
id: webView
height: 0
width: 0
SignalSpy {
id: spy
target: webView
signalName: "loadSucceeded"
}
TestCase {
name: "DesktopWebViewLoad"
function test_loadZeroSizeView() {
compare(spy.count, 0)
webView.load(Qt.resolvedUrl("../common/test1.html"))
spy.wait()
compare(webView.title, "Test page 1")
compare(webView.width, 0)
compare(webView.height, 0)
}
}
}
......@@ -11,6 +11,7 @@ DEFINES += QUICK_TEST_SOURCE_DIR=\"\\\"$$PWD\\\"\"
OTHER_FILES += \
DesktopWebView/tst_properties.qml \
DesktopWebView/tst_navigationPolicyForUrl.qml \
DesktopWebView/tst_loadZeroSizeView.qml \
DesktopWebView/tst_loadProgress.qml \
DesktopWebView/tst_loadProgressSignal.qml \
DesktopWebView/tst_linkHovered.qml \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment