summaryrefslogtreecommitdiffstats
path: root/tests/auto/quick
Commit message (Collapse)AuthorAgeFilesLines
...
* 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>
* Merge remote-tracking branch 'origin/5.7' into 5.8Liang Qi2016-10-061-7/+4
|\ | | | | | | | | | | | | | | Conflicts: src/3rdparty src/webengine/api/qquickwebenginesettings.cpp Change-Id: Ie4abadb076c51d070cbb05f29b9ebcd9705933ad
| * Merge remote-tracking branch 'origin/5.6' into 5.7Liang Qi2016-10-041-3/+2
| |\ | | | | | | | | | | | | | | | | | | Conflicts: src/3rdparty Change-Id: I49d99b5ac2cfba243eda1ea705c2a7d71b5542f6
| | * Fix flaky tst_QQuickWebEngineView::loadProgress testAlexandru Croitor2016-09-301-3/+2
| | | | | | | | | | | | | | | Change-Id: I102bda62bfaa16a8c9ff4c4929e6b5a055de3e25 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * | Fix flaky tst_QQuickWebEngineView::printToPdf test by using QTRY_VERIFYMichael Brüning2016-10-021-4/+2
| | | | | | | | | | | | | | | | | | Task-number: QTBUG-55857 Change-Id: Ieb7fe836e7b03bea28dd97bcad343708a5be2cb5 Reviewed-by: Alexandru Croitor <alexandru.croitor@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>
* | | Add context menu request to qml apiMichal Klocek2016-08-311-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce qml APIs to support custom context menus. [ChangeLog][QtWebEngine][QML] Added ability to show custom context menu. Task-number: QTBUG-52554 Change-Id: Ief0cbbbf221f4c6849e16bbba7417dccee59ad61 Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* | | Add dialog requests to qml apiMichal Klocek2016-08-311-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce qml APIs to support custom dialogs: * http and proxy authentication * javascript dialogs * file pickers * color pickers * form validation messages [ChangeLog][QtWebEngine][QML] Added ability to provide custom dialogs for HTTP and proxy authentication, JavaScript alerts, file and color picking, and form validation messages. Task-number: QTBUG-51190 Change-Id: I559ca59264750feb36ba7d3dba0bf0647509306d Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* | | Update public API listAdam Kallai2016-08-311-0/+10
| | | | | | | | | | | | | | | Change-Id: I40ed13a5dd1d0eaea950bd80b65378bfb303275d 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-055-19/+35
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | Merge remote-tracking branch 'origin/5.6' into 5.7Allan Sandfeld Jensen2016-08-023-9/+8
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/3rdparty src/core/resources/resources.gyp src/webengine/doc/src/qtwebengine-overview.qdoc src/webenginewidgets/api/qwebenginepage.cpp src/webenginewidgets/api/qwebenginescriptcollection.cpp src/webenginewidgets/api/qwebenginescriptcollection_p.h tests/auto/widgets/qwebenginepage/BLACKLIST And readded newly in 5.6 enabled tests to the BLACKLIST. Change-Id: I4ab1fc54ebfaaf940df81b0d8d6bdd15cae8b7c4
| | * Blacklist showHideShow test on LinuxAllan Sandfeld Jensen2016-07-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | It was already skipped on OS X and Windows, but it is also unrealiable on Linux. Change-Id: Ie443c97595979a3cc9d34991a5b0b3f9c69f136c Reviewed-by: Michael Brüning <michael.bruning@qt.io>
| | * Enable qquickwebengineviewgraphics test in CIJoerg Bornemann2016-07-084-10/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | This test requires the QtQuick test support API. Exclude it from build if the API isn't available. Blacklist one problematic test case. Remove the - now superfluous - ENABLE_QML_TESTSUPPORT_API checks. Change-Id: I0b36de182628969e1185d685fa098d6140ae8d9c Reviewed-by: Michal Klocek <michal.klocek@qt.io>
| * | Fix flaky qml user script testAlexandru Croitor2016-07-051-3/+3
| | | | | | | | | | | | | | | Change-Id: I21dfb9146dad44329c490c1c6b32864c70384db3 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
| * | Merge remote-tracking branch 'origin/5.6' into 5.7Allan Sandfeld Jensen2016-06-271-7/+24
| |\| | | | | | | | | | Change-Id: Ic6686df8f82f710a3441501b7eeaffe69fbcbdf7
| | * Fix inputEventForwardingDisabledWhenActiveFocusOnPressDisabled test.Alexandru Croitor2016-06-241-7/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test was flaky due to a couple of reasons, mainly: 1) Size of event recording widget did not match web view size, which led to some events not being caught. 2) There were some bogus QHoverEvents being sent by QQuickWindow whenever a QQuickItem is repositioned (can happen when using a tiling window manager on a Linux machine). 3) Usual timing issues. Change-Id: Idd9d4fa6bd65095f98125196025e0ad560025348 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@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>
* | | Fix changing locale of ResourceBundle on LinuxPeter Varga2016-07-131-0/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The ResourceBundle is not re-initialized for new Renderer Processes because it is initialized only once in Zygote Process. This means runtime locale changes do not affect new Renderer Processes. Zygote Process is supported on Linux only thus other platforms don't need this fix. With this change the locale of the ResourceBundle is reloaded when new Renderer Process is started. For accessing the pak file of the locale in the sandboxed environment the file descriptor is passed via the Chromium's GlobalDescriptor solution. Task-number: QTBUG-53000 Change-Id: I57e84078db9d0795d16d930aa1b3e93a6e86ec39 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>
* | | Add a DownloadType enum property to WebEngineDownloadItemAdam Kallai2016-06-221-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With this property the user gets the requested download's type. In other words, the user can identify the download where it comes from based on the type. Update public API list as well. Change-Id: I2b066d7eb4df1134266ad67ade0066e3bcc2b454 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-06-144-3/+143
|\| | | | | | | | | | | Change-Id: I1ecb615b8df1303c27b6609970502920123b3610
| * | Merge "Merge remote-tracking branch 'origin/5.6' into 5.7" into refs/staging/5.7Allan Sandfeld Jensen2016-05-312-1/+139
| |\ \
| | * | Merge remote-tracking branch 'origin/5.6' into 5.7Allan Sandfeld Jensen2016-05-312-1/+139
| | |\| | | | | | | | | | | | | Change-Id: I561c00b3a844ab493a5bf0148a5923662842cf5d
| | | * Fix event forwarding when activeFocusOnPress is false.Alexandru Croitor2016-05-262-1/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a QQuickWebEngineView does not have focus, and activeFocusOnPress is set to false, a user can still partially interact with the view. For instance hovering the mouse over a link would change the cursor, a link can be clicked to go to a different page. Clicking on a text input field would focus the text field, but entering characters will not be possible, because the view does not have QtQuick keyboard focus, and clicking does not give the focus (because activeFocusOnPress is set to false) and this leads to confusing behavior. Thus the fix is to make sure no mouse / keyboard events are forwarded to Chromium if the view has no focus, and activeFocusOnPress is set to false, in order to maintain a more user-friendly behavior. Manually forcing the focus via some user-provided method that calls forceActiveFocus() would allow further proper interaction. Change-Id: I72c3ff69438972b9a93ee2d415fa1d4b44b86cd9 Reviewed-by: Michael Brüning <michael.bruning@theqtcompany.com>
| | | * Disabled WebEngine views should not receive focus.Alexandru Croitor2016-05-261-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently if a QWebEngineView or a QQuickWebEngineView is disabled using setEnabled(false), after loading a web page, the views are automatically focused, and a user might see a blinking caret in an html input for example, even though the user can't interact with it. Fix consists in not calling the Focus() method whenever a view is disabled. Change-Id: I1014fb5898a5ddf01a4e9b14c3eaf5d4006e5131 Task-number: QTBUG-53159 Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com>
| * | | Update public API listAdam Kallai2016-05-311-2/+1
| | | | | | | | | | | | | | | | | | | | Change-Id: I348d135949aaca4695352b1d7a27187d891ddd56 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | | | Merge branch '5.7' into devAllan Sandfeld Jensen2016-05-313-3/+4
|\| | | | | | | | | | | | | | | Change-Id: I31793735d6523e157558d731f46bf10bfc1156d0