diff options
Diffstat (limited to 'WebKit/qt/tests')
-rw-r--r-- | WebKit/qt/tests/qgraphicswebview/tst_qgraphicswebview.cpp | 8 | ||||
-rw-r--r-- | WebKit/qt/tests/tests.pri | 3 |
2 files changed, 10 insertions, 1 deletions
diff --git a/WebKit/qt/tests/qgraphicswebview/tst_qgraphicswebview.cpp b/WebKit/qt/tests/qgraphicswebview/tst_qgraphicswebview.cpp index e06524d..a04ff17 100644 --- a/WebKit/qt/tests/qgraphicswebview/tst_qgraphicswebview.cpp +++ b/WebKit/qt/tests/qgraphicswebview/tst_qgraphicswebview.cpp @@ -34,6 +34,7 @@ private slots: void crashOnViewlessWebPages(); void microFocusCoordinates(); void focusInputTypes(); + void crashOnSetScaleBeforeSetUrl(); }; void tst_QGraphicsWebView::qgraphicswebview() @@ -132,6 +133,13 @@ void tst_QGraphicsWebView::crashOnViewlessWebPages() delete page; } +void tst_QGraphicsWebView::crashOnSetScaleBeforeSetUrl() +{ + QGraphicsWebView* webView = new QGraphicsWebView; + webView->setScale(2.0); + delete webView; +} + void tst_QGraphicsWebView::microFocusCoordinates() { QWebPage* page = new QWebPage; diff --git a/WebKit/qt/tests/tests.pri b/WebKit/qt/tests/tests.pri index 525e662..a795ff8 100644 --- a/WebKit/qt/tests/tests.pri +++ b/WebKit/qt/tests/tests.pri @@ -3,7 +3,8 @@ CONFIG -= app_bundle VPATH += $$_PRO_FILE_PWD_ # Add the tst_ prefix, In QTDIR_build it's done by qttest_p4.prf -!CONFIG(QTDIR_build):TARGET = tst_$$TARGET +CONFIG(QTDIR_build) { load(qttest_p4) } +ELSE { TARGET = tst_$$TARGET } SOURCES += $${TARGET}.cpp INCLUDEPATH += \ $$PWD \ |