summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets
Commit message (Collapse)AuthorAgeFilesLines
...
* | Emit a new signal when printing to a PDF file finishesMichael Brüning2017-01-101-2/+11
|/ | | | | | | | | | | | | | | [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>
* 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>
* Port autotests from own waitForSignal() to QSignalSpy::wait()David Faure2016-11-296-81/+100
| | | | | | | | 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>
* 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>
* | | 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>
* | | 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>
* | | Add quick and widget auto tests for keyboard event handlingPeter Varga2016-10-253-0/+189
| | | | | | | | | | | | | | | | | | Task-number: QTBUG-56242 Change-Id: Ib6689d6f183532502382c86f92fdbdf27dd6c37c Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* | | Merge remote-tracking branch 'origin/5.7' into 5.8Liang Qi2016-10-061-0/+3
|\| | | | | | | | | | | | | | | | | | | | | | | 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>
* | | Remove viewSource and canViewSource APIs and use WebAction insteadPeter Varga2016-10-011-4/+4
| | | | | | | | | | | | | | | | | | | | | 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>
* | | Minor cleanup of m_view/m_page useAllan Sandfeld Jensen2016-09-261-19/+14
| | | | | | | | | | | | | | | | | | | | | | | | Don't change the page of m_view, and don't make both page and view if not necessary. Change-Id: I27a4ecbc548e9b970bd561750cf15fb5490931ff Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* | | Add support of colored underline and background to InputMethodEventPeter Varga2016-09-232-57/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moreover, unskip and update inputMethodsTextFormat widget auto test and move it to the tst_QWebEngineView tests. New manual test has been also added for testing input methods format. Task-number: QTBUG-55766 Change-Id: I4c71e15cb426925f76c770266a3c20f1cc12b687 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | | Add widget auto test for WebEngineSettings default font familiesPeter Varga2016-09-181-0/+23
| | | | | | | | | | | | | | | | | | Task-number: QTBUG-55222 Change-Id: Iff7ffc81d83598eff5ab8b1386298241e8a10979 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | | Adaptations to Chromium 52Allan Sandfeld Jensen2016-09-141-0/+2
| | | | | | | | | | | | | | | Change-Id: Idf8a511ba26d263fd9d014d87d5e1101d706da71 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* | | Autocomplete view-source URLPeter Varga2016-08-241-0/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | Fix tst_QWebEnginePage::popupFormSubmission widget auto testPeter Varga2016-08-241-7/+12
| | | | | | | | | | | | | | | Change-Id: Ife988a414e0037fe7f3dde3e2e3332119b965b2c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | | Make spellcheck autotest more robustAllan Sandfeld Jensen2016-08-231-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | The replace action is performed asynchronously, so we need to give it time to take effect. Change-Id: Ie0b6b445e565c04bb0f093b905c06f8eb19beb6c Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* | | Merge dev into 5.8Oswald Buddenhagen2016-08-221-1/+1
|\ \ \ | | | | | | | | | | | | Change-Id: I23aa7e41dfbbb7c4e4259a32868e64c58c0a1310
| * | | Merge remote-tracking branch 'origin/5.7' into devLiang Qi2016-08-161-1/+1
| |\| | | | | | | | | | | | | | Change-Id: Id5f97771be23a4393e8d3be98903c321377ae809
| | * | Blacklist flaky getUserMediaRequest test for all platformsMichael Bruning2016-08-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It seems to fail on RHEL 7.2 and Windows on integration machines. Task-number: QTBUG-51652 Change-Id: I44fe19e625f3a639e91325ddef29b910ddd3525c Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* | | | Fix crash on changing persistent storage pathAllan Sandfeld Jensen2016-08-211-0/+20
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | The deletion of HttpNetworkSession references the old HttpServerProperties so delete the session before we replace the properties. Task-number: QTBUG-55322 Change-Id: I420dc0523fda44423adaa5f4f0fa1df9ade4b584 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* | | Add focusOnNavigationEnabled settingAlexandru Croitor2016-08-091-0/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-053-47/+145
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-47/+142
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | * Prevent a crash after having downloaded a fileAndy Shaw2016-07-261-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since the profile owns the QWebEngineDownloadItem then it is likely that it will still be around when the QWebEngineProfile is deleted. As the QWebEngineDownloadItem is a child of the QWebEngineProfile then it will try to delete it when deleting the QWebEngineProfile which means it cannot trigger a function call into QWebEngineProfilePrivate. Change-Id: I51077a7857fb49a6708224a9e9942d17de6f6778 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| | * Propagate the view's screen coordinates on global position changeJoerg Bornemann2016-07-122-0/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Suppose having a QWebEngineView as one of many child widgets in a layout. Resize some child widget such that the position of the QWebEngineView changes (without changing the position of the top-level window). Chromium must be informed of the changed global position, otherwise popups will be opened at the old position. Also see commit 7f941a34, which originally introduced the coordinate propagation for top-level window moves. Task-number: QTBUG-51244 Change-Id: Ieb372e8d7554700d5e8d1e2148ab778094ea3878 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| | * Remove tst_QWebEnginePage::localURLSchemesJoerg Bornemann2016-07-121-29/+0
| | | | | | | | | | | | | | | | | | | | | | | | This was a rudimentary test case for QWebSecurityOrigin. This API was replaced in QtWebEngine. Change-Id: If41a7f48906a6b49d5a83c72c69dbfd125804537 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
| | * Clear internal selected text when searchingAlexandru Croitor2016-07-011-18/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously if a selection was made on a web page, and afterwards a find operation is executed, the selection in the web page would be cleared, but the call to selectedText() would still return the old selection. Make sure selectedText() is always cleared, when starting a find operation, as well as when stopping one. Change-Id: If78f0fa1dd836a52184015e749ef5a84b9f784cd Task-number: QTBUG-54071 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* | | Eliminate some qWait() calls from QWebEnginePage auto testsPeter Varga2016-08-031-5/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | The eliminated qWait() calls were used for waiting for a TestPage to create a new window. To avoid waiting for an arbitrary time these calls are replaced by waiting for Testpage::windowCreated() signal. Change-Id: I96a142f9b99c4a36f1bf36ecba06c7ef6be732ba Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | | Add View Source API and make the feature available from context menuPeter Varga2016-08-022-1/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [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/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | Switch to using QQuickWidget in WebEngineWidgetsAllan Sandfeld Jensen2016-07-062-11/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | To support scenegraph-ng we need to switch away from QOpenGLWidget, to something that will work with any QQuick backend. Task-number: QTBUG-53283 Change-Id: I476a2c22e35a18cefc2824d5342bcff874c44d28 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* | | Unskip and adapt evaluateWillCauseRepaint widget test to WebEnginePeter Varga2016-07-041-12/+28
| | | | | | | | | | | | | | | Change-Id: I1a08f4051f722cf38e357f39f83123aa766abb2d Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | | Add back spellchecking supportMichal Klocek2016-07-021-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit: * d364c05de52f9ab39034e56cac4e0a7981dc541d * e507f140b70f464fb970d2f94357ac588dcc4f03 Moreover it fixes shut down of keyed services, updates versioning of and fixes spellcheck unit test context menu request, which otherwise fails on windows. Change-Id: I9bfc589544cb969abd6d2d7af69531b4c5c907b7 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | | Merge remote-tracking branch 'origin/5.7' into devAllan Sandfeld Jensen2016-06-203-2/+62
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-0/+36
| |\| | | | | | | | | | Change-Id: If4d8a25f5a2192a658d031252435935cbc675725
| | * Fix translation of multiple pressed mouse buttonsAllan Sandfeld Jensen2016-06-141-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We were reporting any mouse button event where the left mouse button was held as a left mouse button event. We should instead separate the button changed and the ones held. Also adds test of the translation. Change-Id: I1139d6615d54a036dfe843fdb1d1c90b23b467b5 Reviewed-by: Alexandru Croitor <alexandru.croitor@theqtcompany.com> Reviewed-by: Michael Brüning <michael.bruning@qt.io>
| * | Fix the IPC webChannelTransport not being available on reloadJocelyn Turcotte2016-06-131-2/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The gin JavaScript binging gets destroyed on page reload after all references to it disappear from the previous document. Do like other gin wrapper and reinstall the transport binding on DidCreateDocumentElement, following how it's done by the MojoBindingsController. Task-number: QTBUG-53411 Change-Id: Ibcd9ef9dbedc5762d4f2210fd81f68e5b9127680 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
| * | [Reapply] Blacklist getUserMediaRequest on WindowsAllan Sandfeld Jensen2016-06-131-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | This change was lost in the last merge from 5.6, but is still needed. Task-number: QTBUG-51652 Change-Id: Ic87ebb19ddda7d06ea12bd0826ddf10d404a75d8 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* | | Introduce QWebEnginePage::saveJoerg Bornemann2016-06-161-0/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add the convenience method QWebEnginePage::save for saving pages without the need to explicitly handle download requests. Task-number: QTBUG-51798 Change-Id: I8910ce8cb7c9370d72f2b209c4d2de07c614f6d6 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | | Merge branch '5.7' into devAllan Sandfeld Jensen2016-06-147-352/+181
|\| | | | | | | | | | | Change-Id: I1ecb615b8df1303c27b6609970502920123b3610