summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/qwebenginepage
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* 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-231-57/+0
| | | | | | | | | | | | | | | | | | | | 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>
* | 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>
* | 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>
* | Merge remote-tracking branch 'origin/5.7' into devLiang Qi2016-08-052-47/+132
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-022-47/+129
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | * 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>
* | | Switch to using QQuickWidget in WebEngineWidgetsAllan Sandfeld Jensen2016-07-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | Merge remote-tracking branch 'origin/5.7' into devAllan Sandfeld Jensen2016-06-202-0/+39
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | [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-142-218/+29
|\| | | | | | | | | | | Change-Id: I1ecb615b8df1303c27b6609970502920123b3610
| * | Merge remote-tracking branch 'origin/5.6' into 5.7Allan Sandfeld Jensen2016-06-112-16/+8
| |\| | | | | | | | | | Change-Id: Ib010ede9756fb02992a3276ae7ec90ef1ab56a00
| | * Fix tst_QWebEnginePage::setHtmlWithImageResource testAllan Sandfeld Jensen2016-06-102-11/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have changed qrc resources so that they can be accessed from any security origin. To have a test of local resources we would need a file URL. Task-number: QTBUG-53153 Change-Id: I22b730f07785eacd365e3ec591f5dcbd09b6fc84 Reviewed-by: Alexandru Croitor <alexandru.croitor@theqtcompany.com> Reviewed-by: Michael Brüning <michael.bruning@qt.io>
| * | Fix and enable tst_QWebEnginePage::scrollPositionAllan Sandfeld Jensen2016-06-091-14/+13
| | | | | | | | | | | | | | | | | | | | | | | | With scroll position readers available in Qt 5.7 we can now perform this test. Change-Id: I3aad92f55cd075fa211a9c4abe56fb0c2198af7d Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
| * | Remove tst_QWebEnginePage::renderHints()Allan Sandfeld Jensen2016-06-011-137/+0
| | | | | | | | | | | | | | | | | | | | | | | | Since we do not use QPainter inside the webview, this property is not going to make sense again. Change-Id: I6d2948699deb574ca7f8e850efe3bddbe61713af Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
| * | Merge "Merge remote-tracking branch 'origin/5.6' into 5.7" into refs/staging/5.7Allan Sandfeld Jensen2016-05-311-45/+0
| |\ \
| | * | Merge remote-tracking branch 'origin/5.6' into 5.7Allan Sandfeld Jensen2016-05-311-45/+0
| | |\| | | | | | | | | | | | | Change-Id: I561c00b3a844ab493a5bf0148a5923662842cf5d
| | | * Remove tests for the javaScriptWindowObjectCleared signalJoerg Bornemann2016-05-301-45/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have no equivalent of QWebFrame::javaScriptWindowObjectCleared and won't need it. Change-Id: I998e0412256887414c125df9ab994216dee22dc9 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * | | Fix widget geolocation testsAllan Sandfeld Jensen2016-05-312-5/+7
| |/ / | | | | | | | | | | | | | | | | | | | | | Avoid having a test location plugin, and have the tests allow failure if no position service is available. Change-Id: Ib2d4d6c5a269077b70b6ea31e67a8e3eab62f98a Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* | | Remove obsolete testsAllan Sandfeld Jensen2016-05-281-25/+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>
* | | Merge remote-tracking branch 'origin/5.7' into devLiang Qi2016-05-274-0/+65
|\| | | | | | | | | | | Change-Id: Ieac8a52a2942ed72eaea432a344deeec28da2ed6
| * | Merge remote-tracking branch 'origin/5.6' into 5.7Liang Qi2016-05-204-0/+65
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/3rdparty src/core/browser_context_adapter.cpp src/core/web_contents_adapter.cpp tests/auto/widgets/qwebenginepage/BLACKLIST Change-Id: I45ee0a33f6316f585555d58fede8072fe514aecf
| | * Merge "Merge remote-tracking branch 'origin/5.6.1' into 5.6" into ↵Liang Qi2016-05-191-0/+3
| | |\ | | | | | | | | | | | | refs/staging/5.6
| | | * Blacklist flaky QWebEnginePage::setHtmlWithImageResource test.Alexandru Croitor2016-05-101-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It used to be an expected fail, then it seemed to work in 5.6, and for some reason it fails again in 5.6.1. Change-Id: I95161e001c3b8af3ea48fc284e448a2d8853e108 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| | * | Fix pasting images to web pagesJoerg Bornemann2016-05-193-0/+62
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | WebKit expects pasted images to have the MIME type image/png (see code and comment in DataObjectItem::getAsFile()). Task-number: QTBUG-53409 Change-Id: I2b0c1244d309687ad190db26c5b00718ed0c4258 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | | Merge remote-tracking branch 'origin/5.7' into devAllan Sandfeld Jensen2016-05-041-1/+27
|\| | | | | | | | | | | Change-Id: I8d3ed9c067ef5e6199d6cffcb41453d6f92f5cba
| * | Cleanup license leftoversMichal Klocek2016-05-031-1/+1
| | | | | | | | | | | | | | | Change-Id: Ie0ecb1808c6b6a689ef29d7fa4831ca0a2e92721 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
| * | Revert "Fix unexpected passes in tst_QWebEnginePage."Alexandru Croitor2016-05-031-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | The test passes in 5.6, but not in 5.7. This reverts commit fe84829aeb3ba19b74935198dbcbd6f5c67915b3. Change-Id: I204c2d80b80e7c33d573963fd4366e4613ceb789 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
| * | Merge remote-tracking branch 'origin/5.6' into 5.7Allan Sandfeld Jensen2016-04-291-2/+0
| |\| | | | | | | | | | Change-Id: I922e637ffbf03aa15711fa5d0e10ecd4f25448ab
| | * Fix unexpected passes in tst_QWebEnginePage::setHtmlWithImageResource.Alexandru Croitor2016-04-271-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requesting a local file resource without a baseUrl set, should not be allowed. This hasn't worked before in Webkit, so the checks were marked with QEXPECT_FAIL. Remove these, as the issue has been fixed, and now causes unexpected passes. Change-Id: I7d38692a9961651d48abe28218d7ee022a85f101 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
| * | Merge remote-tracking branch 'origin/5.6' into 5.7Allan Sandfeld Jensen2016-04-251-0/+26
| |\| | | | | | | | | | Change-Id: I329397621f19ba3890be5daf44a6bb2d668ad2d8
| | * Use the temporary zoom factor to set the zoom factorMichael Bruning2016-04-211-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It turns out that using the temporary zoom factor is meant to set the zoom factor for one certain view, and this is actually what we want. Also added auto tests for this. Task-number: QTBUG-51851 Task-number: QTBUG-51969 Change-Id: I8912cbc25637d3c1681026380a2ab3068a964868 Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com>
* | | Remove navigatorCookieEnabled test caseSzabolcs David2016-04-211-17/+0
|/ / | | | | | | | | | | | | This feature is feasible but not too useful. Change-Id: Ie6689ff73cb858b3f425d292c6b41e7ecb76541b Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* | Remove default values for printToPdf callbacks and unify API.Michael Bruning2016-04-131-2/+2
| | | | | | | | | | | | | | Adds default QPageLayout values. Change-Id: Ibf2964ecd86350a51d682e385973f830ac4347a7 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* | Fix glitches in tst_QWebEnginePage::printToPdfJoerg Bornemann2016-03-311-2/+2
| | | | | | | | | | | | | | | | | | | | | | QTRY_VERIFY combined with CallbackSpy::waitForResult is one layer of retry/wait too much. If the first waitForResult fails but subsequent waitForResult calls succeed something's very wrong. The condition in the second QTRY_VERIFY was wrong. The unary not was applied to length, not to the whole comparison. Change-Id: Ic66f740ba01527a979ab1ef9d8188dcbe9ab713a Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>