summaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qmltests
Commit message (Collapse)AuthorAgeFilesLines
* Blacklist flaky test_linkHoveredDoesntEmitRepeated QML testPeter Varga2016-11-221-0/+3
| | | | | | | Task-number: QTBUG-55870 Change-Id: I0d8dc7253e49662d1f73e7ef09d2529c530595b1 Reviewed-by: Milla Pohjanheimo <milla.pohjanheimo@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Remove mouse click workaround from test_navigationRequestedPeter Varga2016-11-171-3/+0
| | | | | | | | The issue has been fixed in the quick test framework. Task-number: QTBUG-56223 Change-Id: I101ca4cdd3f741623111d35d13dfcdb35ca85ea3 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Wait for focus before key press in NewViewRequest::test_jsWindowOpenPeter Varga2016-11-165-45/+23
| | | | | | | | | This patch is intended to fix flaky failure and factors focus related test functions out to TestWebEngineView. Task-number: QTBUG-56540 Change-Id: Id7e17c08a4a9e863389ae991c9cadc00379377db Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Add faviconbrowser quick manual testPeter Varga2016-11-152-10/+10
| | | | | Change-Id: I3b6353b5c58d62c968c704b20224ff8ee600a524 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix crash when trying to execute script on a detached RenderFramePeter Varga2016-11-082-15/+19
| | | | | | Task-number: QTBUG-56661 Change-Id: I546222dde64c54955c62d2c30df79d4773b9973c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Reimplement QML test cases of tst_loadUrl auto testv5.8.0-beta1Peter Varga2016-10-263-118/+209
| | | | | | | | | | | | | | | | | Get rid of some potential flaky issues: - Fix typo in redirect.html - Do not check URL before wait the result of the load. As a corner case the load might be finished earlier than the comparison. - Get rid of unnecessary signal handlers for unrelated test cases. The superfluous operations might have enough overhead to cause a comparison to be timed out. - Separate data URL test case and blacklist it due a to known issue (QTBUG-56661) Task-number: QTBUG-56180 Task-number: QTBUG-56661 Change-Id: I76cec4e761be646c2f60588a34bae806cf558b3a Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* Add quick and widget auto tests for keyboard event handlingPeter Varga2016-10-253-0/+276
| | | | | | Task-number: QTBUG-56242 Change-Id: Ib6689d6f183532502382c86f92fdbdf27dd6c37c Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Fix find after navigationPeter Varga2016-10-183-3/+20
| | | | | | | | | Update Chromium for the actual fix. Add quick auto test for the issue and unskip WebViewFindText::testfindTextManyMatches. Task-number: QTBUG-56373 Change-Id: Id70291e5231f572c85b0a7c1ec1b6facd161115a Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* Speculative fix of title check in quick auto testsPeter Varga2016-10-173-20/+14
| | | | | | | | | Title might be changed after a successful page load too. The order is not guaranteed. Implement wait for the expected title change. Task-number: QTBUG-56180 Change-Id: If8c529e6246fe9e8c93e41be84c8934c8ed8d729 Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* Refactor tst_keyboardModifierMapping.qml quick auto testPeter Varga2016-10-151-29/+13
| | | | | | | Simplify code and remove unnecessary wait calls. Change-Id: If3a783a2a4f97e84de993b9394f5cfa0df948ec2 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Speculative fix of tst_unhandledKeyEventPropagation.qml quick auto testPeter Varga2016-10-152-8/+3
| | | | | | | | This fix implements an attempt to remove wait from the test. Task-number: QTBUG-56180 Change-Id: I2bfeb14ebc9451a1237178aa3c97bd1b27e9485c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Speculative stabilization of test_focusOnNavigation quick auto testPeter Varga2016-10-152-13/+19
| | | | | | | Reimplement setting focus on a HTML element in JavaScript. Change-Id: I1db53bcb526fd52df1fa23527089f8186dfd0ea3 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Blacklist flaky QML NewViewRequest::test_jsWindowOpenPeter Varga2016-10-141-0/+3
| | | | | | Task-number: QTBUG-56540 Change-Id: Ic48883f94d72acf9a965fe8687abb20205a4703b Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Blacklist flaky QML WebViewFindText::test_findTextManyMatchesPeter Varga2016-10-141-0/+3
| | | | | | Task-number: QTBUG-56373 Change-Id: I599c02a12a0dfb35bb8b3d1d3abbede1c6498f9e Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Add Quick auto test for QQuickWebEngineNewViewRequestPeter Varga2016-10-072-0/+137
| | | | | | | Task-number: QTBUG-55765 Change-Id: I5576876191fe1c819aa85f2e312391126c904201 Reviewed-by: Christophe Chapuis <chris.chapuis@gmail.com> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Clean up qt quick controls 1 dialogsMichal Klocek2016-10-045-0/+0
| | | | | | | | Based on code review for qqc2 integration, apply cleanup changes to qqc1. Change-Id: I9752ce944385a529a1d999a5419638868e18d799 Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* Remove viewSource and canViewSource APIs and use WebAction insteadPeter Varga2016-10-011-4/+7
| | | | | | | Task-number: QTBUG-56092 Change-Id: I026a0d153269a71e4e44f0fd30ef5ca054edd0e7 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix clicking in test_navigationRequestedPeter Varga2016-09-302-3/+3
| | | | | | | | | The second mouse click in the test was handled as a double click. Workaround the issue by changing click coordinate in the initialization. Task-number: QTBUG-56180 Change-Id: I12e94ed5dbccdde4c0e6335e8a1c8a5e59b2d6a6 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Speculative fix of user script QML testsPeter Varga2016-09-301-10/+11
| | | | | | | | The sequence of the titleChanged and loadingChanged signals is not guaranteed. Wait for both of them to avoid flaky behavior. Change-Id: I981cd20f6535187fa0f8144db0084c8bb64ab41c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fixup test_titleFirstLoadAllan Sandfeld Jensen2016-09-301-0/+5
| | | | | | | | Also allow the title to change to the URL during loading until the content title is parsed. Change-Id: Ie8059885576c840dbee639a597f78e1004ba1851 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Speculative fix of test_bigScriptAllan Sandfeld Jensen2016-09-262-5/+1
| | | | | | | Wait asynchronously on the title change. Change-Id: I4e3826c5206e1a1a77c095c3226406d4eee64eba Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Speculative stabilization of titleChangedAllan Sandfeld Jensen2016-09-263-6/+2
| | | | | | | | Only wait on title-changed signal before checking, this also makes it safe to reduce the timeout for changing title, speeding up the test. Change-Id: I4ecaf9400dfea624b39c73277425e09a52ea7b92 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Blacklist flaky tests on windowsAllan Sandfeld Jensen2016-09-261-0/+21
| | | | | | | | | | A number of tests are failing randomly on the windows CI. This patch disables them for now until they are stabilized. Task-number: QTBUG-56180 Change-Id: Ifddbd52ef0b3c123cccd934457fc8bdbb7a89613 Reviewed-by: Kai Koehne <kai.koehne@qt.io> Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Merge remote-tracking branch 'origin/5.7' into 5.8Liang Qi2016-09-211-1/+5
|\ | | | | | | | | | | | | | | | | Conflicts: src/3rdparty src/core/delegated_frame_node.h src/webengine/api/qquickwebenginecontextmenudata.cpp Change-Id: I163488d0d32cd981351608b2886f12e547e24672
| * Fix test_scrollPositionAfterReload quick auto testPeter Varga2016-09-131-1/+5
| | | | | | | | | | | | | | | | | | Wait for scroll position change before reload. Task-number: QTBUG-55855 Change-Id: Ia42af1a4a76b2c507f4a88b39a469e3e37184ef7 Reviewed-by: Adam Kallai <kadam@inf.u-szeged.hu> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Autocomplete view-source URLPeter Varga2016-08-241-0/+34
| | | | | | | | | | | | | | | | | | | | | | User may miss the URL scheme (eg. http://) when type a view-source url into the browser's location bar (eg. view-source:qt.io). This is not handled by the Chromium thus will produce an empty view-source page. The new autocompletion extends the incomplete view-source URL thus it will provide valid URL if it is possible (eg. view-source:http://qt.io/) Change-Id: I3edcd271cd0a971c9754e875db8f2a55a9a545de Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Blacklist flaky QML WebEngineViewFocusOnNavigation testAlexandru Croitor2016-08-231-0/+3
| | | | | | | | | | Change-Id: I7886475f6f3f288704608a4e4d9c8cfeeb244e62 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Add focusOnNavigationEnabled settingAlexandru Croitor2016-08-092-0/+137
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The focusOnNavigationEnabled setting allows changing the behavior of whether a WebEngine view (widget or quick) will automatically get focus, whenever a navigation action happens (load, reload, previous history entry, etc). The default behavior before this patch was to always grab the focus. [ChangeLog][QtWebEngine][General] Add focusOnNavigationEnabled setting which allows controlling whether a web view will receive focus on a navigation request. Previously the view always received the focus. Task-number: QTBUG-52999 Change-Id: I6d30d973a41b53011131f21dcecbf6ec4d652759 Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* | Merge remote-tracking branch 'origin/5.7' into devLiang Qi2016-08-051-3/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also blacklist tst_QWebEnginePage::comboBoxPopupPositionAfterChildMove() and comboBoxPopupPositionAfterMove(). Conflicts: .qmake.conf src/3rdparty src/core/render_widget_host_view_qt.cpp src/core/resources/resources.gyp src/webengine/doc/src/qtwebengine-platform-notes.qdoc src/webenginewidgets/render_widget_host_view_qt_delegate_widget.cpp src/webenginewidgets/render_widget_host_view_qt_delegate_widget.h tests/auto/widgets/qwebenginepage/BLACKLIST tests/auto/widgets/qwebenginepage/tst_qwebenginepage.cpp tools/qmake/mkspecs/features/functions.prf Task-number: QTBUG-55158 Change-Id: I1d73ac9b3ca5293ad3c7e3a56f4c395da930e6f4
| * Fix flaky qml user script testAlexandru Croitor2016-07-051-3/+3
| | | | | | | | | | Change-Id: I21dfb9146dad44329c490c1c6b32864c70384db3 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* | Add View Source API and make the feature available from context menuPeter Varga2016-08-022-0/+94
| | | | | | | | | | | | | | | | | | | | [ChangeLog][QtWebEngineQML][QQuickWebEngineView] View Source feature is now supported [ChangeLog][QtWebEngineWidgets][QWebEnginePage] View Source feature is now supported Change-Id: Icc16da71fc6ec95880897fc9744dd8be8c004e00 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Parse metadata block in user scriptsSzabolcs David2016-07-072-0/+32
| | | | | | | | | | | | | | | | | | | | This allows WebEngine to build up user script objects from the metadata section of their source code. It also implements @include, @exclude and @match rules for restricting script injection to given URL patterns. Change-Id: Ic7b3023c0143643bfbf71adbfa25a8022b223fcf Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Fix call to tryCompare in tst_download.qmlMichael Bruning2016-07-061-1/+1
| | | | | | | | | | | | | | | | tryCompare insists on getting the name of the property to be checked as a string. Change-Id: Ic879281305e3055eb8e0ff2092a74b6dba06f87a Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Unskip runJavaScript related QML auto testsPeter Varga2016-07-042-2/+0
| | | | | | | | | | | | | | The corresponding QtDeclarative bug has been fixed. Change-Id: I191870257969ba7dbf2d0539e46de5b0c3c1d694 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Merge "Merge remote-tracking branch 'origin/5.7' into dev" into refs/staging/devAllan Sandfeld Jensen2016-06-215-13/+100
|\ \
| * | Merge remote-tracking branch 'origin/5.7' into devAllan Sandfeld Jensen2016-06-205-13/+100
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/3rdparty src/core/permission_manager_qt.cpp src/core/renderer/web_channel_ipc_transport.cpp src/core/renderer/web_channel_ipc_transport.h Change-Id: I25fd8ed7c433dadce44d8ac1e39f86e211ec25f0
| | * Merge remote-tracking branch 'origin/5.6' into 5.7Allan Sandfeld Jensen2016-06-171-12/+6
| | |\ | | | | | | | | | | | | Change-Id: If4d8a25f5a2192a658d031252435935cbc675725
| | | * Stabilize FilePicker QML autotestsAllan Sandfeld Jensen2016-06-161-12/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Switch from timed wait to using tryCompare. Task-number: QTBUG-53777 Change-Id: I845fb8ee7b84641bd23314794512960634423d54 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
| | | * Skip geolocation testAllan Sandfeld Jensen2016-06-101-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This test is unreliable in 5.6. We have a working version in 5.7. Change-Id: I1e4e2abe896e479d8960a3a3b990d80d41b844f1 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
| | * | Add QML test for scrollPositionAdam Kallai2016-06-164-1/+94
| | | | | | | | | | | | | | | | | | | | Change-Id: Ia7541befb43d2b6fdd09b13ca51fc7d09b955964 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* | | | Add test for form validation's sub validation messagePeter Varga2016-06-202-0/+28
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | Since commit 8b0d048b02c1f1cb24fdb83f11791507df246e05 there is no test for sub validation messages. Add new test based on test case of the following fix: https://codereview.chromium.org/1671613003 Change-Id: I73de2a6709ebaa52bfe87b81b4b6f8a1cf072de8 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | | Merge branch '5.7' into devAllan Sandfeld Jensen2016-05-313-3/+4
|\| | | | | | | | | | | Change-Id: I31793735d6523e157558d731f46bf10bfc1156d0
| * | Fix QML geolocation testAllan Sandfeld Jensen2016-05-313-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | The test had a race condition and never waited for success or failure. In addition it didn't handle the case where there is no location service available. Change-Id: Icac02d0cc6396f31fed83b8b77b691ba872ac2f0 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* | | Remove obsolete testsAllan Sandfeld Jensen2016-05-282-26/+0
|/ / | | | | | | | | | | | | | | | | | | | | document.defaultCharset has been removed in Chromium 50. See https://www.chromestatus.com/feature/6217124578066432 And form validation no longer reports title See https://codereview.chromium.org/1671613003 Change-Id: I3b461f897c1ec5ca3b72e141f2119a8f87c3081b Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* | Unskip test_errorPageEnabled in tst_favicon.qml testAdam Kallai2016-05-251-8/+4
| | | | | | | | | | | | | | | | | | - Unskip this test becuse the releted issue is already fixed. - It is worth to restore the initial page before each test functions, not only when there was icon url. Change-Id: I2a71e026ab3ffabb8de191b7296a67ac44479934 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Update test_promptSzabolcs David2016-05-221-2/+1
| | | | | | | | | | | | | | | | | | | | If the user clicks "cancel" the prompt() method returns null. This is the expected behavior in browsers, see the specification: https://dev.w3.org/html5/spec-preview/user-prompts.html Change-Id: I2089b7fe551d454904bc1b5b07a28e5e49ba8dfd Task-number: QTBUG-51749 Reviewed-by: Michael Brüning <michael.bruning@theqtcompany.com>
* | Combine candidate icons for a page into a single iconPeter Varga2016-05-049-12/+72
| | | | | | | | | | | | | | | | | | | | | | | | For the Widget API the QIcon returned by QWebEnginePage::icon() function contains all the candidate icons for the current page. For the Quick API the QQuickWebEngineFaviconProvider provides the best quality icon for the requested size from the candidates. Task-number: QTBUG-51179 Change-Id: I42b8427f957e2f2fc745dd0111bedcc71b577216 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* | Merge remote-tracking branch 'origin/5.6' into 5.7Allan Sandfeld Jensen2016-04-253-0/+131
|\| | | | | | | Change-Id: I329397621f19ba3890be5daf44a6bb2d668ad2d8
| * Add tst_settings.qml QML test caseAdam Kallai2016-04-203-0/+131
| | | | | | | | | | | | | | | | | | - Add test for localStorageEnabled setting. - Add test for javascriptEnabled setting. Change-Id: I7a67c24bdf76409148e88500d9a7a092f7896493 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu> Reviewed-by: Michael Brüning <michael.bruning@theqtcompany.com>
* | Add QQuickWebEngineFaviconProviderPeter Varga2016-04-205-8/+101
| | | | | | | | | | | | | | | | | | 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>