summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Make QQuickWebEngineScript a publicly exported classSzabolcs David2017-01-261-1/+1
| | | | | | | | | Now the users can create user scripts when they are working with QQuickWebEngineProfiles in C++. Change-Id: I6ada78b1fc44c3f93589eb468578c330a1be9c6f Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* Add profile-wide user scripts to the Quick APISzabolcs David2017-01-262-0/+44
| | | | | | | | Add API tests in order to try how it works in C++ and QML. Task-number: QTBUG-51034 Change-Id: I1680297e2dafba39dbd4b161f0dbdb14fb6d4243 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Merge remote-tracking branch 'origin/5.8' into devLiang Qi2017-01-254-121/+170
|\ | | | | | | | | | | | | | | Conflicts: src/3rdparty tests/auto/widgets/qwebengineview/tst_qwebengineview.cpp Change-Id: I070173576fc4be53689ce0dd9e1fd4133f5814da
| * Fix handling of empty input method eventsPeter Varga2017-01-222-14/+29
| | | | | | | | | | | | Task-number: QTBUG-55766 Change-Id: I4e6ade8f000f66ff1bb28f3b856ae140834292f1 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * Make input method hints available via RWHV delegate widgetPeter Varga2017-01-202-28/+26
| | | | | | | | | | | | | | | | | | Moreover, set ImHiddenText hint for password fields and add back the corresponding widget auto test. Task-number: QTBUG-55766 Change-Id: I3f76e19c8c33e11f3d9f515b6dc7d6e998c3c9a4 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * Add back SIP (Software Input Panel) widget testPeter Varga2017-01-184-79/+115
| | | | | | | | | | | | | | | | | | Moreover, update the Chromium SHA1 for enabling virtual keyboard support for macOS. Task-number: QTBUG-55766 Change-Id: Ic50ae79ab13a62a4b9289afedce2d6647e266f86 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Merge remote-tracking branch 'origin/5.8' into devAllan Sandfeld Jensen2017-01-186-24/+50
|\| | | | | | | Change-Id: If16bfc6f0fbfd0040e13a8a3cbaa113fda10f387
| * Unskip tst_QWebEnginePage::setHtmlWithStylesheetResourceSzabolcs David2017-01-151-20/+13
| | | | | | | | | | | | Task-number: QTBUG-51572 Change-Id: Ie8e7e5ef38f88ae91d892b703cd9702b2637daa2 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * Fix font load error messages inside non-app-bundle testsAlexandru Croitor2017-01-105-4/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some fonts were failing to load in tests because macOS does not consider some font paths when an application is built without an Info.plist file (as is the case for a non-bundle application). It is possible though to embed a plist file into the executable by passing the path to the file as a linker argument. This change generates an Info.plist for each test, and embeds it into the final executable, thus fixing the font problems. Task-number: QTBUG-57354 Change-Id: I4c3c29442b9d308ee6a327645054a67c4b008ef8 Reviewed-by: Jake Petroules <jake.petroules@qt.io>
* | Add print and pdf feature to new configure systemMichal Klocek2017-01-163-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | Currently printing and pdf are bounded together. Make compilation optional by adding it as a feature. Fix formatting of embedded_linux.pri Task-number: QTBUG-57731 Task-number: QTBUG-58108 Change-Id: I53a2baea656df0a5b6139365ed06385c9ebc5830 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Add methods to issue various types of HTTP requestsViktor Engelmann2017-01-111-0/+135
| | | | | | | | | | | | | | | | | | | | | | | | | | Added class QWebEngineHttpRequest, which describes a GET or POST HTTP Request. Also added overloads of method "load" to QWebEngineView, QWebEnginePage and WebContentsAdapter, which issue such a request. These can be used for example to simulate form-submissions. Task-number: QTBUG-53314 Task-number: QTBUG-53372 Change-Id: I85ac8cdd3d1557905b35e3172b922aba356d1c41 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Emit a new signal when printing to a PDF file finishesMichael Brüning2017-01-102-4/+20
|/ | | | | | | | | | | | | | | [ChangeLog][Important Changes] Printing to a PDF file will now emit signal the signal pdfPrintingFinished in both QQuickWebEngineView and QWebEnginePage. The boolean passed with the signal to indicate if the printing and saving of the PDF was successful. The path of the created file is also passed to enable the user to map the signal to a print request. Task-number: QTBUG-56677 Change-Id: Ifab5a20b048f33a8cd872165bd4d453b01708037 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* Speculative fix of DesktopWebEngineViewLinkHovered QML testsPeter Varga2016-12-091-4/+4
| | | | | | | | | | Give more time for render process to handle mouse hover events. Task-number: QTBUG-55870 Change-Id: I9922fc5d988351a2dd6cc2ed6a7af435a34600de Reviewed-by: Kai Koehne <kai.koehne@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Ensure the deletion of testing pagesSzabolcs David2016-12-062-142/+108
| | | | | | | | | If a test fails it may trigger an assert in debug mode because the delete wasn't performed. Move QWebEngine* objects to the stack or use QScopedPointers to avoid these assertion fails. Change-Id: Ic44c3fddc7cd9cf57a0e2d1c57e0a6fd99033e02 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Wait for loadVisuallyCommitted signal with SignalSpyPeter Varga2016-11-291-31/+25
| | | | | Change-Id: Ic200807246c5feb8e1f33215cbc6194b03765359 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Port autotests from own waitForSignal() to QSignalSpy::wait()David Faure2016-11-299-116/+116
| | | | | | | | I added QSignalSpy::wait() in Qt 5.0 exactly for this purpose. Change-Id: I895a92f5f7e4e8554e00f6668e6973cc2c903adf Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix keyboard focus of RWHVQDW after popupPeter Varga2016-11-292-1/+60
| | | | | | Task-number: QTBUG-56652 Change-Id: I1a6655587a9104dd817332e2eb5f886c057d8f64 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix DesktopWebEngineViewLinkHovered QML testsPeter Varga2016-11-252-6/+22
| | | | | | | | | | The linkHovered signal can be emitted only if the page is rendered. Waiting for rendering and for the UpdateTargetURL event may exceed the time limit so add wait for the rendering too. Task-number: QTBUG-55870 Change-Id: I3aa8e323a3bf8ff3f4a85c3de9efd3ab0f459f62 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Move the QPrinter and QtWidgets related code out of the PDFium wrapperMichael Brüning2016-11-252-0/+6
| | | | | | | | | | | This moves the actual printing using QPrinter to the WebEngineWidgets part of the API. The printsupport module depends on the widgets module and therefore QtWebEngineCore also had a dependency to widgets. This is removed by this change. Change-Id: If6e5745709a59de18f2123b930cbe6e64390c867 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Merge remote-tracking branch 'origin/5.7' into 5.8Allan Sandfeld Jensen2016-11-252-1/+3
|\ | | | | | | | | | | | | Conflicts: src/3rdparty Change-Id: Ib9c9eca457c1c42dab948e6cb56d44b57d5da32a
| * Increase timeout in loadSignalsOrder testsAllan Sandfeld Jensen2016-11-241-1/+1
| | | | | | | | | | | | | | | | | | | | Use a standard QTRY_VERIFY. Apparently launching the web-process might sometimes take more than 500ms on the CI under load. Task-number: QTBUG-57119 Change-Id: Icb7706b5aed3cf72f026af6d1d2f9430c4942a2a Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
| * Merge branch '5.6' into 5.7Allan Sandfeld Jensen2016-11-241-0/+2
| |\ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/core/api/qwebengineurlrequestinfo.cpp src/core/api/qwebengineurlrequestinfo.h src/core/core_gyp_generator.pro Change-Id: I5c78f0c86f6dcd61697148f0729d3d3a2cb2c76f
| | * Blacklist doNotSendMouseKeyboardEventsWhenDisabled on WindowsAllan Sandfeld Jensen2016-11-231-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | It fails occasionally and blocks integration Task-number: QTBUG-57117 Change-Id: I7266ccf4fe7e0905dc31e5e7c085be6f90d0aa03 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* | | Force tst_QWebEnginePage to use English languageSzabolcs David2016-11-231-0/+1
| | | | | | | | | | | | | | | | | | | | | Some tests were failing with non-english settings. Change-Id: Iebc4dc06217688955cdc7291aca73a2b0c628698 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* | | 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-1511-11/+774
| | | | | | | | | | | | | | | Change-Id: I3b6353b5c58d62c968c704b20224ff8ee600a524 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | | Rename class of tst_QWebEngineAccessibility widget auto testPeter Varga2016-11-151-10/+10
| | | | | | | | | | | | | | | Change-Id: I042e1be6f0c29b8dc8e5e409e5ecff71a58d0c64 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | | Add spellchecker feature to new config systemMichal Klocek2016-11-141-1/+1
| | | | | | | | | | | | | | | Change-Id: I35a5c815c9f2b3ebacb5991ba6645641b17db2db Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | | Enable spellcheck test on macOSMichal Klocek2016-11-141-3/+6
| | | | | | | | | | | | | | | | | | Change-Id: I938ca8afb1d98103590a7ac4cbba77610a0eb099 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* | | Make view source working with qrc URLsPeter Varga2016-11-111-10/+17
| | | | | | | | | | | | | | | | | | Task-number: QTBUG-56353 Change-Id: I9c5dc3a6ba4e6b08ecbb4e44d38a53d24010807b 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>
* | | Update spellcheck api to support multiple languagesMichal Klocek2016-10-294-9/+51
| | | | | | | | | | | | | | | | | | Task-number: QTBUG-56074 Change-Id: I2a66e91dd4ed1026e5ab2539cfd3f9094263b48c Reviewed-by: Michael Brüning <michael.bruning@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-256-0/+465
| | | | | | | | | | | | | | | | | | 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>
* | | Merge remote-tracking branch 'origin/5.7' into 5.8Liang Qi2016-10-062-7/+7
|\| | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/3rdparty src/webengine/api/qquickwebenginesettings.cpp Change-Id: Ie4abadb076c51d070cbb05f29b9ebcd9705933ad
| * | Speculative stabilization of tst_QWebEnginePage::testJSPromptAllan Sandfeld Jensen2016-10-051-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | Make sure we start in a well-defined state, and is not in process of setting up the blank page. Change-Id: I787db2ef75323bb72a5a6c6fd2e66b268f89b16d Reviewed-by: Michael Brüning <michael.bruning@qt.io>
| * | 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>