diff options
author | Peter Varga <pvarga@inf.u-szeged.hu> | 2016-03-03 16:12:29 +0100 |
---|---|---|
committer | Peter Varga <pvarga@inf.u-szeged.hu> | 2016-03-25 14:12:36 +0000 |
commit | 3e30c0a33e301bb993efc7a046a34c8cbc68ca58 (patch) | |
tree | f7f7c2f69621e33c4469fed24117b66743d18e79 /tests/auto/quick/qmltests/data/tst_favicon.qml | |
parent | bd3d10a4a892166c79563e0ef37b3065420f99d0 (diff) |
Add multi-sized favicon test
Change-Id: Ib984c4fb3e9a2424ac09e4ab17a9bfc3f9627fb9
Task-number: QTBUG-51179
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
Diffstat (limited to 'tests/auto/quick/qmltests/data/tst_favicon.qml')
-rw-r--r-- | tests/auto/quick/qmltests/data/tst_favicon.qml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/auto/quick/qmltests/data/tst_favicon.qml b/tests/auto/quick/qmltests/data/tst_favicon.qml index 8448960dd..1619b73b0 100644 --- a/tests/auto/quick/qmltests/data/tst_favicon.qml +++ b/tests/auto/quick/qmltests/data/tst_favicon.qml @@ -226,5 +226,21 @@ TestWebEngineView { var iconUrl = webEngineView.icon compare(iconUrl, Qt.resolvedUrl("")) } + + function test_multiIcon() { + compare(iconChangedSpy.count, 0) + + var url = Qt.resolvedUrl("favicon-multi.html") + webEngineView.url = url + verify(webEngineView.waitForLoadSucceeded()) + + iconChangedSpy.wait() + compare(iconChangedSpy.count, 1) + + // Image QML type does not support multi-sized icons thus + // chooses the first size + compare(favicon.width, 16) + compare(favicon.height, 16) + } } } |