summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/widgets.pro
Commit message (Collapse)AuthorAgeFilesLines
* Do not blacklist webChannelWithBadStringMichal Klocek2019-05-031-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | This commit is about documenting some weird new behavior. Since Chormium 72 our webChannelWithBadString fails. This is fascinating issue and can be tracked down to commit in Chromium https://chromium-review.googlesource.com/c/1282993 which "fixes" well-forming of JSON.strigify. This function is used by webchannel.js to send data through webchannel transport. In c++ land we get now for invalid utf16 replacement in form of '\\u' + i.toString(16).padStart(4, '0'). This sadly does not trigger any longer REPLACE_INVALID_UTF8 in WebChannelTransport::NativeQtSendMessage. Moreover this goes even "worse" since QMetaObjectPublisher will create invalid utf16 form raw "\ud800" string -> '\ud800'. This is not an error per se, since test creates invalid utf16 character in javascript and it ends as invalid utf8 character in c++. Btw enable test on qemu. Change-Id: I36f2df417d7b9f3f2113792f08025821737d8d01 Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
* Make offscreen test offlineMichal Klocek2019-04-171-2/+1
| | | | | | | This enables also the test on qemu. Change-Id: I70c40b3cedeadfb21e396d8a550a54fe0a319438 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Fix running proxypac test on qemuMichal Klocek2019-04-171-1/+1
| | | | | | | | | | | | | Do not override '--no-sandbox' on boot2qt. Starting resolver service on qemu is bonkers and ends up in unsupported calls during threading checks. Adding '--no-zygote' solves the issue, however introduces race condition and deadlocks on resolver service start, which would make test flaky. The deadlock issue is not reproducible without qemu. Therefore to workaround the issue run test in single process mode. Task-number: QTBUG-63346 Change-Id: I33a1079776edecddf3d7653db6c2ecc3a868b1a1 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Do not run offscreen test on windowsMichal Klocek2019-03-271-0/+2
| | | | | | | | Offscreen plugin tries to open opengl handle and fails. Disable test for now. Change-Id: I6cecfef4e47a700ff720811f8e8dc4829a814821 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Enable running some tests on qemuMichal Klocek2019-03-141-4/+5
| | | | | | | | | Add some tests which looks stable enough and do not require blacklisting. Task-number: QTBUG-63346 Change-Id: I071669895f6c81af498b5348ef86d81d551c899d Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Add simple offscreen qpa testMichal Klocek2019-03-041-1/+2
| | | | | | Task-number: QTBUG-63346 Change-Id: Ie33cea29ca4e274070f3fa52aef499f02a080108 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Add proxy authentication unit testMichal Klocek2019-02-191-1/+2
| | | | | | Task-number: QTBUG-58121 Change-Id: Id2f983903f2e631cc6ec0632a70ac6ec3ef3c1ce Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Add proxy switches handlingMichal Klocek2019-02-041-4/+2
| | | | | | | | | | | This change adds switches for proxy: https://www.chromium.org/developers/design-documents/network-settings [ChangeLog] Uses proxy switches for initial proxy configuration Fixes: QTBUG-71229 Change-Id: I1bc02f20c20d737234c650a18f0e0f7c1c63a464 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Merge remote-tracking branch 'origin/5.11' into 5.12Allan Sandfeld Jensen2018-10-221-0/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: configure.json src/3rdparty src/core/content_browser_client_qt.cpp src/core/content_browser_client_qt.h src/core/login_delegate_qt.cpp src/core/login_delegate_qt.h src/core/net/url_request_context_getter_qt.cpp src/core/net/url_request_context_getter_qt.h src/core/qtwebengine.gni 3rdparty changes: 616a7f558c7e This is expected for us, so don't report it as an error. c30febceaa1b Do not write <protocol>.json to source directory 9e68e4f2d92c Remove incomplete logic to detect AMD K2 CPU's e0ed41c8e90a FIXUP: This is expected for us, so don't report it as an error. f9fd9109b4b7 Fix --single-process --disable-gpu combination not to hit asserts f305d65cc27e Reduce severity level of messages when kDisableGpu switch is used 5e3e5074bb78 Work around MSVC2017 optimizer bug when printing a page usind Pdfium 34f52ec3bae8 Bump maximum number of custom isolated world ids f7a2f8153c82 Fix hunspell::NodeReader::affix_id_for_leaf bounds check 1e80090f7044 Fix resolve_proxy service permissions 2e498629651d Add proxy_resolver_manifest Change-Id: I2b176c80aa315a0ae0a22b5707694fdcd407407b
| * Adds proxy pac testMichal Klocek2018-10-181-0/+3
| | | | | | | | | | | | | | | | Task-number: QTBUG-71128 Task-number: QTBUG-69281 Task-number: QTBUG-71229 Change-Id: If6b839ce12efb3ccd69c270d99b10b3756014bb2 Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* | Enable and rename qwebengineinspector testAllan Sandfeld Jensen2018-07-291-2/+2
| | | | | | | | | | | | | | Also makes it a bit a more testing. Change-Id: I5cb5fe5936cf94e8589e86637771082127d7a341 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* | Clean-up of test namesAllan Sandfeld Jensen2018-07-231-13/+13
| | | | | | | | | | | | | | We want to only use the qwebengine-prefix for tests of actual classes. Change-Id: I0ab4e17f3b4994cc67e836112965307236d61549 Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* | Move printing out of tst_qwebenginepageMichal Klocek2018-07-181-1/+5
| | | | | | | | | | Change-Id: Ida7ee0e4a31a1c19d7b2eaf572b6ff703cbab79d Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* | Add tst_loadsignalsMichal Klocek2018-07-031-1/+2
| | | | | | | | | | | | | | | | | | | | Because of the recent problems with unexpected or missing loadStarted and loadFinished signals (which sometimes interfere with other load's signals), we add a set of auto-tests for load-signals. Done-By: Viktor Engelmann <viktor.engelmann@qt.io> Change-Id: Ia3b65c7b3c4d1ed44e94f409e047db6c6defb821 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Fine tune configure and clean up header includesMichal Klocek2018-06-121-1/+2
|/ | | | | | | | | | | | | | | | | | | | | | Previously configure was generating two config headers qtwebengine-config.h and qtwebengine-config_p.h, however those headers were never installed or included as dependency in Makefiles. Moreover, due to the name clash all features were included into qt_lib_webengine_*.pri which is QtWebEngine QML module. Move configure to core so all features belong now to qt_lib_webenginecore*.pri. Fix global includes to include qtwebenginecore-config*.h. Drop all DEFINES and use QT_CONFIG instead. Cleanup all evil looking includes in headers for webengine and webenginewidgets. Change-Id: Iddbc8bf4487d9a5f0c19a71a9569535083507756 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Add tests/auto/widgets/originsJüri Valdmann2018-04-171-2/+3
| | | | | | | | | | Unlike http/https, the same-origin policy for file, qrc and custom schemes is not specified in any standard and, for the latter two, is not tested by Chromium either. Therefore some tests might be useful. Task-number: QTBUG-62536 Change-Id: I194d06c16c44b0a78bf4dba57415a2d2c6b991cc Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Expose JavascriptCanPaste attributeKai Koehne2018-02-021-1/+1
| | | | | | | | | | | | Expose an attribute to enable the execCommand("paste") functionality, which is by default disabled due to security concerns. [ChangeLog][General] Added JavaScriptCanPaste attribute that enables JavaScript 'execCommand("paste")'. Task-number: QTBUG-64056 Change-Id: I1a414021e020473dd15946fff91fb103d871e961 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Merge remote-tracking branch 'origin/5.10' into devAllan Sandfeld Jensen2017-12-181-1/+1
|\ | | | | | | Change-Id: I9ddd2bdd830a862cd81dc1af5616d43e652a1c0e
| * Rename qwebenginehistoryinterface testAllan Sandfeld Jensen2017-12-141-1/+1
| | | | | | | | | | | | | | | | | | We have no qwebenginehistoryinterface and the test does basically nothing, however since it exposes problems at shutdown we can keep the test as an very fast test just to check fast shutdown work. Change-Id: I612ac79fad788fe3835789fcfba11647f43a8796 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* | Merge remote-tracking branch 'origin/5.10' into devAllan Sandfeld Jensen2017-11-291-2/+2
|\| | | | | | | | | | | | | | | | | Conflicts: src/core/web_event_factory.cpp src/core/web_event_factory.h src/webengine/render_widget_host_view_qt_delegate_quick.h Change-Id: Ic43787e2689c81b501ed395a990190eb67d83a2b
| * Add 'webengine' prefix to configure features, tests, libraries, etcAlexandru Croitor2017-11-121-2/+2
| | | | | | | | | | | | | | | | This is done to make sure there are no conflicts with features in other modules, because they all share a global namespace. Change-Id: I95b3b7fadd8ffc2979ee3aad2234ee543d57c7d8 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* | Merge remote-tracking branch 'origin/5.10' into devLiang Qi2017-11-031-3/+5
|\| | | | | | | | | | | | | Conflicts: src/3rdparty Change-Id: Ie6b1922db2269e0e0561022162228a7c8609c9ba
| * Change spellchecker-related private features into public onesAlexandru Croitor2017-11-021-1/+1
| | | | | | | | | | | | | | | | | | | | This is done because qtConfig(spellchecker) is present in an example .pro file, and thus "spellchecker" should be a public feature. Change-Id: Idff977b8d0835b049c4c19dc42c1475d2c55c323 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io> Reviewed-by: Michal Klocek <michal.klocek@qt.io>
| * Remove pointless inclusions of qtwebengine-config.priAlexandru Croitor2017-11-021-1/+0
| | | | | | | | | | | | | | Only projects which are built before the actual module need to do that. Change-Id: Ia8b071a627bd39c5df4600877b6873f308cbf690 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
| * Merge branch '5.9' into 5.10Allan Sandfeld Jensen2017-11-011-1/+4
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: .qmake.conf src/core/core_module.pro src/core/delegated_frame_node.cpp src/core/surface_factory_qt.cpp src/webenginewidgets/api/qwebengineprofile.cpp tests/auto/widgets/widgets.pro Change-Id: I92f3ef4eee779afef6c5381a7aa8b551417c1b17
| | * Build accessibility tests only when Qt is configured with accessibilityMichael Brüning2017-10-261-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | Original patch by Daniel Mack <daniel@zonque.org> Task-number: QTBUG-64015 Change-Id: I7dd0a1aa9bff08c6d19e818acf0e1b8b4b701f5b Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* | | Fix version numbers for UnknownUrlSchemePolicyViktor Engelmann2017-09-261-2/+4
|/ / | | | | | | | | | | | | | | | | | | | | | | As 49c0ce8403e5caeb864f66553f122c68a7c975fb missed feature freeze for Qt 5.10, the version numbers must be corrected to Qt 5.11, REVISION 6 etc. Also the auto test was moved into its own source file, so we can blacklist it on Boot2Qt. Task-number: QTBUG-58627 Change-Id: I2381e2433ba1b903a62f59a6db58e5f25af77336 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* / Remove WEBENGINE_CONFIG from configureMichal Klocek2017-09-201-2/+5
|/ | | | | | | | | | | | | | Do not store flags in qmake.cache with WEBENGINE_CONFIG. Use directly qtConfig values insted. This makes configuration more consistent, simplifies handling and avoids passing values from qtConfig to WEBENIGNE_CONFIG, which then were passed to gn. [ChangeLog] Removing WEBENGINE_CONFIG from qtwebengine configure Change-Id: I1a773fb4bff6d67ad75c237d044998051d92ab51 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Add test for downloading a link via user actionJüri Valdmann2017-09-121-1/+3
| | | | | Change-Id: Ide3294840ceb3d18da0c4da92d892ff467a9b739 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Disable/blacklist failing tests for boot2qtSami Nurmenniemi2017-05-081-0/+5
| | | | | | | | | Currently boot2qt is tested with QEMU and some tests fail. Disabling them for now to make it possible to enable qt5 tests for Coin. Task-number: QTBUG-60266 Change-Id: I91a61bfb99b2629cb549b76d60c24f1d5f8c3ad8 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix broken inclusion of webenigne spellcheck testMichal Klocek2017-04-041-1/+1
| | | | | | | | | Change 33e20b4 switched no_spellchecker into use_spellchecker, however change for tests directory was incorrect. Task-number: QTBUG-59687 Change-Id: Ie4d4dae863b90a3b35c9e92c88332096aad75325 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>
* Fix widget geolocation testsAllan Sandfeld Jensen2016-05-311-5/+0
| | | | | | | | 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>
* Add spellcheck autotestMichal Klocek2016-05-061-0/+5
| | | | | | | Skip test on osx for now. Change-Id: I8f748d00da54fd5b7217b08a18e7a58d31cb898c Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* Merge remote-tracking branch 'origin/5.6' into devLiang Qi2016-02-101-0/+1
|\ | | | | | | | | | | | | | | Conflicts: tests/auto/widgets/qwebengineprofile/tst_qwebengineprofile.cpp tests/auto/widgets/widgets.pro Change-Id: Id9444359ed2e35d469331db96a355c9ea2d095d5
| * OS X: Fix crash when setting a custom default QSurfaceFormat.Alexandru Croitor2016-02-041-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Setting a new default QSurfaceFormat after QtWebEngineCore::initialize() is called, might lead to a crash. This happens when the new surface format has a different OpenGL profile, compared to the profile created by web engine in the RenderWidgetHostViewQtDelegateWidget constructor. The default constructed QSurfaceFormat has an OpenGL Compatibility profile. Inside the Cocoa platform plugin when a new shared OpenGL context is created, it fails to initialize the new context because of the difference in profiles, and thus ultimately creates an unshared context, which leads to a crash. Fix consists in using the shared context QSurfaceFormat in the RenderWidgetHostViewQtDelegateWidget constructor, and also printing a fatal warning to notify the developer only to set the new QSurfaceFormat before the application instance is declared. Bottom line, if the QSurfaceFormat OpenGL profile has to be changed, it should be done before QtWebEngineCore::initialize() is called. Doing so after initialize() is called, will lead to a crash. Change-Id: I8a07211b592143d736b001556b944d4759802396 Task-number: QTBUG-50665 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com>
* | Add FaviconManager to corePeter Varga2016-02-031-0/+1
|/ | | | | | | | | The new icon manager uses the WebContents::DownloadImage() API for downloading icons. It proposes the best quality among the available favicons via the iconChanged signal. Change-Id: I66a014365b6f6560ff34d40ee870aee84e4e70e4 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Fix resetting attributes in top level WebEngineSettingsSzabolcs David2015-11-121-0/+1
| | | | | | | | | | | Store default values in separate containers and remove related FIXMEs from WebEngineSettings. Add API test case in order to demonstrate the bug. Change-Id: If9d98265cab0f41b543fe690d534879b65f2b577 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* add dummy positioning pluginJoerg Bornemann2015-11-061-0/+5
| | | | | | | | | | | The QtPositioning plugin loader only loads plugins that are marked as testable whenever it detects that a Qt autotest is running. We now provide our own very simple positioning plugin that always provides the same location: the western beacon of port entrance Warnemünde. Change-Id: I747188dc261ba47c10056ad50754bb686e75c783 Reviewed-by: Michael Brüning <michael.bruning@theqtcompany.com>
* remove "CONFIG += ordered" where applicableJoerg Bornemann2015-11-061-2/+0
| | | | | | | We will specify proper dependencies when they are needed. Change-Id: Ic62d891dcf3ee97fd98788e848c9ac7c69922282 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Merge remote-tracking branch 'origin/5.5' into 5.6Liang Qi2015-10-281-2/+3
|\ | | | | | | | | | | | | Conflicts: src/3rdparty Change-Id: I49acdd9b5ca94f2807b0c13a97f508a67f1c5750
| * Set off-the-record to true as documentedAllan Sandfeld Jensen2015-10-131-2/+3
| | | | | | | | | | | | | | | | | | | | The API had no way of setting off-the-record, because the constructor meant for it set it to false. The patch fixes the constructor and adds basic API tests for the QWebEngineProfiles. Change-Id: I407eb4a4b0524b6c4eb944d17d744620dd9db6fb Task-number: QTBUG-48724 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* | remove tst_qwebengineframe from the default buildJoerg Bornemann2015-09-011-1/+0
|/ | | | | | | It's broken beyond repair and must be merged into tst_qwebenginepage. Change-Id: I16f3213cd63d7897eb2f95bac9c4fc1d41342fb3 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* Enable build of QWebEngineScript API testSzabolcs David2015-04-071-0/+1
| | | | | | | The MSVC doesn't support this type of string literal concatenation. Change-Id: I051593a34c801df6c5264370ad751c45bbb41b5a Reviewed-by: Pierre Rossi <pierre.rossi@theqtcompany.com>
* Widget based accessibility glue codeFrederik Gladhorn2014-07-101-0/+1
| | | | | | | | | With this patch the accessibility hierarchy inside webengine becomes available when navigating from QWidget based web views. Change-Id: Ib3625a6ec93b4d3f298fb845ab85209b348349ba Reviewed-by: Zeno Albisser <zeno.albisser@digia.com> Reviewed-by: Andras Becsi <andras.becsi@digia.com>
* Make tst_QWebEngineFrame compileJocelyn Turcotte2014-01-221-2/+1
| | | | | | | | Even though this code now test QWebEnginePage, keep it in its original file to allow easier tracking of differences with QtWebkit. Change-Id: Id001c2fcba0ee4a756fe5f32d8002e15368a191b Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
* Turn on to run all widgets tests by make check. Move widgets test to tests/auto.Adam Kallai2013-10-141-0/+12
Change-Id: If3617d86ea44f665a44a54b6ba57935b69220a9e Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com> Reviewed-by: Andras Becsi <andras.becsi@digia.com>