diff options
author | Peter Varga <pvarga@inf.u-szeged.hu> | 2016-03-22 09:56:00 +0100 |
---|---|---|
committer | Peter Varga <pvarga@inf.u-szeged.hu> | 2016-04-20 08:22:15 +0000 |
commit | ddc4c40e2dcba81d36c9a4c445f1540b90403997 (patch) | |
tree | 1b2ae4c8d5df228ba71a4e404fef4fe6907e4bbe /tests/auto/quick/qmltests/data/tst_faviconDownload.qml | |
parent | e46e76a8ffbfa87f488cd16f8720db1a5f3eed83 (diff) |
Add QQuickWebEngineFaviconProvider
The new QQuickImageProvider subclass is used to access downloaded icons
from the FaviconManager via the Quick API.
Change-Id: I6a52d3c737b2260cf480167764a931915cd99cab
Task-number: QTBUG-51179
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
Diffstat (limited to 'tests/auto/quick/qmltests/data/tst_faviconDownload.qml')
-rw-r--r-- | tests/auto/quick/qmltests/data/tst_faviconDownload.qml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/auto/quick/qmltests/data/tst_faviconDownload.qml b/tests/auto/quick/qmltests/data/tst_faviconDownload.qml index e4dfb36aa..406dfa3ea 100644 --- a/tests/auto/quick/qmltests/data/tst_faviconDownload.qml +++ b/tests/auto/quick/qmltests/data/tst_faviconDownload.qml @@ -35,6 +35,10 @@ TestWebEngineView { width: 200 height: 400 + function removeFaviconProviderPrefix(url) { + return url.toString().substring(16) + } + SignalSpy { id: iconChangedSpy target: webEngineView @@ -108,7 +112,7 @@ TestWebEngineView { iconChangedSpy.wait() compare(iconChangedSpy.count, 1) - var iconUrl = webEngineView.icon + var iconUrl = removeFaviconProviderPrefix(webEngineView.icon) compare(iconUrl, row.expectedIconUrl) } } |