diff options
author | Balazs Egedi <egedib@inf.u-szeged.hu> | 2021-07-09 16:58:24 +0200 |
---|---|---|
committer | Balazs Egedi <egedib@inf.u-szeged.hu> | 2021-08-09 20:20:54 +0200 |
commit | 47d57eaa2756a108ae28d9e6226577fe66868cee (patch) | |
tree | 37cc47e5985c3184f37313e504ee7dccc275e7b6 /tests/auto/quick | |
parent | 3fd9d08bc24bc5f769677b411750d73801adc2d2 (diff) | |
download | qtwebengine-47d57eaa2756a108ae28d9e6226577fe66868cee.tar.gz |
Reintroduce File Picker control
- Using FileDialog from QuickDialogs2
- Enabled the UIDelegates test
Task-number: QTBUG-93666
Pick-to: 6.2
Change-Id: I8438a2498e864bc93abf26f2527d7883ac26ca9b
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'tests/auto/quick')
-rw-r--r-- | tests/auto/quick/uidelegates/tst_uidelegates.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/auto/quick/uidelegates/tst_uidelegates.cpp b/tests/auto/quick/uidelegates/tst_uidelegates.cpp index 31ce3401a..4c2fa3b3c 100644 --- a/tests/auto/quick/uidelegates/tst_uidelegates.cpp +++ b/tests/auto/quick/uidelegates/tst_uidelegates.cpp @@ -143,7 +143,6 @@ void tst_UIDelegates::javaScriptDialog() void tst_UIDelegates::fileDialog() { - QSKIP("There is no FilePicker Control in Quick Controls 2."); m_window->show(); QTRY_VERIFY(qApp->focusObject()); QQuickWebEngineView *view = webEngineView(); @@ -152,11 +151,10 @@ void tst_UIDelegates::fileDialog() "<input type='file' id='filePicker'/>" "</body></html>"); QVERIFY(waitForLoadSucceeded(view)); - QString filePickerStr = QStringLiteral("filePicker"); - QPoint filePickerCenter = elementCenter(view, filePickerStr); + QPoint filePickerCenter = elementCenter(view, QStringLiteral("filePicker")); QTest::mouseClick(view->window(), Qt::LeftButton, {}, filePickerCenter); - QTRY_VERIFY(view->findChild<QObject *>(filePickerStr)); + QTRY_VERIFY(view->findChild<QObject *>(QStringLiteral("fileDialog"))); } void tst_UIDelegates::contextMenu() |