summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* enable tests/auto/coreJoerg Bornemann2015-10-303-4/+3
| | | | | | | | Enable autotests and blacklist tests that are known to fail. Add skips and waits and mark them with the corresponding task numbers. Change-Id: I993e366ba3b07239a8ba15eae2ee8e3e2aaa8308 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Merge remote-tracking branch 'origin/5.5' into 5.6Liang Qi2015-10-283-2/+82
|\ | | | | | | | | | | | | Conflicts: src/3rdparty Change-Id: I49acdd9b5ca94f2807b0c13a97f508a67f1c5750
| * Set off-the-record to true as documentedAllan Sandfeld Jensen2015-10-133-2/+82
| | | | | | | | | | | | | | | | | | | | 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>
* | Fullscreen notification popups for the Quick examplesSzabolcs David2015-10-274-2/+111
| | | | | | | | | | | | Change-Id: If1057d74b4fa2cb98565e6a0a6f569e24b520753 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* | Remove userAgentApplicationName API test caseSzabolcs David2015-10-271-23/+0
| | | | | | | | | | | | | | | | | | | | We can't support this functionality, because we have multiple QCoreApplications in QtWebEngine and the user agent would pick up "QtWebEngineProcess" as value from the core layer. The users have to do it themselves. Change-Id: Id2b92d919ed47390f46b31da50a1e8e224c163ad Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* | Fix build of tst_qwebenginepageSzabolcs David2015-10-211-2/+8
| | | | | | | | | | Change-Id: Ic6cff6bed5ec1120ce8147ea02eeaea697788d16 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* | Fix ABI breakage due to fullscreen featureAllan Sandfeld Jensen2015-10-191-20/+5
| | | | | | | | | | | | | | | | | | | | | | We can not add a new virtual method without breaking ABI on some platforms, instead we need to use a setter. The API now uses a request object, and a separate signal for canceling, since canceling can not be rejected. Change-Id: If8069c343e86926293c30e8de179bf4e3cbd5886 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* | Do not require to subclass/install QWebEngineCookieStoreClientKai Koehne2015-10-192-47/+30
| | | | | | | | | | | | | | | | | | The class has only setters and getters, except for the virtual acceptCookie method. By replacing this method with a setCookieFilter callback we can avoid the need of users to subclass the client. Change-Id: Id78c01fc103b8d9cc267594527239b598e8975f1 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* | Add firstPartyUrl to QWebEngineUrlRequestInfoDavid Rosca2015-10-123-0/+26
| | | | | | | | | | | | | | | | Add firstPartyUrl that can be used to identify third-party requests. Change-Id: I2b8e48ff0a1a4402af224c80f91d4e599a61a89c Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* | add RequestClose web actionJoerg Bornemann2015-10-094-0/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Web pages can set the onbeforeunload handler to let the user confirm whether to leave the page or not. Until now, only when leaving the page via a link, a confirmation was shown. Before actually closing a web page, applications can now trigger the RequestClose web action. This will give the use the chance to confirm or deny the close request. If the request is confirmed, the signal windowCloseRequested is emitted. Task-number: QTBUG-36155 Change-Id: Icc1fabc37a2ac537f674c2f00bc8966e4dc4e610 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* | Remove whitespaces from custom HTTP user agentsSzabolcs David2015-09-291-20/+9
| | | | | | | | | | | | | | | | | | This prevents adding additional headers to the outgoing HTTP request through overridden user agent and unskips userAgentNewlineStripping API test. Change-Id: If9b3a88b0346058a7dc462471637d9777683fe82 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* | update tst_publicapiJoerg Bornemann2015-09-281-79/+132
| | | | | | | | | | | | | | Added QQuickWebEngineSingleton and updated the expected API list. Change-Id: If91aadd2353b94732da18734bdfe68fbf3245d53 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* | Remove unnecessary test ifdefAllan Sandfeld Jensen2015-09-211-2/+1
| | | | | | | | | | | | | | We have settings and plugin setting now. Change-Id: Id999c20a0e1d5d2b7272207827de8fd31377ba01 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* | Unskip loadFinishedAfterNotFoundError test caseSzabolcs David2015-09-141-10/+6
| | | | | | | | | | Change-Id: Ie9f1aea1c7aad3e5a188667d1a38e5bc516564f8 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* | Change some QNAM tests to use URLRequestInterceptorSzabolcs David2015-09-142-128/+103
| | | | | | | | | | Change-Id: I83536664df15375622e1b24496685ae19ab829c1 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* | Remove unnecessary QNetworkAccessManager test casesSzabolcs David2015-09-141-36/+0
| | | | | | | | | | Change-Id: I83b996740c96e8844f448cf4eb97593c6088a481 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* | Remove unnecessary QWebEngineFrame test casesSzabolcs David2015-09-111-193/+1
| | | | | | | | | | | | | | We will not implement API for web frames. Change-Id: I9ba09cc2f58fc8a2abc96f3148a76d854946fed4 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* | Merge QWebEngineFrame tests into tst_qwebenginepageSzabolcs David2015-09-0911-1665/+1596
| | | | | | | | | | | | | | | | It also fixes the failing progressSignal test case and skips the asserting tests: setUrlToEmpty and setUrlHistory. Change-Id: I2b2b5504247c09e5791a3c202b24b83c266c286f Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* | Merge "Merge branch '5.5' into 5.6" into refs/staging/5.6Allan Sandfeld Jensen2015-09-084-0/+134
|\ \
| * | Merge branch '5.5' into 5.6Allan Sandfeld Jensen2015-09-084-0/+134
| |\| | | | | | | | | | Change-Id: Idafba4d47393638cfc72fd02be092b67bb8cbd8c
| | * Add tst_geopermission QML test caseAdam Kallai2015-09-013-0/+133
| | | | | | | | | | | | | | | Change-Id: Icfb74f3ef8b0745d3fc0a7335f8344960a74fa0b Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
| | * Update the expected list of public API testcaseAdam Kallai2015-08-271-0/+1
| | | | | | | | | | | | | | | Change-Id: I5cec5789149e3a9ed8b6752646f1879bb3dd56aa Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* | | Enable geolocation permission testAllan Sandfeld Jensen2015-09-081-31/+28
|/ / | | | | | | | | | | | | Fix and enable the geolocation permission test. Change-Id: I337df66fe744101f47abb9381ef8151b697a35a2 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* | Fix build of tst_qwebengineurlrequestinterceptorSzabolcs David2015-09-071-4/+4
| | | | | | | | | | | | | | Fixes a regression of 6ef0a365124d435314113837dc77fa07b02ff86b Change-Id: Ibf54d4c3d0d5b9aad88be8720da38d3142f7a559 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* | Fix selectAll on data urlAllan Sandfeld Jensen2015-09-031-3/+7
| | | | | | | | | | | | | | | | SelectAll only works when there is a focused frame, so we must ensure a frame is focused when the web-contents requests focus. Change-Id: I00d670321b29342fcd447b4b07251df776019f1c Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* | stabilize QWebEnginePage tests that use JS callbacksJoerg Bornemann2015-09-031-11/+87
| | | | | | | | | | | | | | | | Replace the QTest::qWait calls with a watcher object that can wait on JS callbacks. Change-Id: Iad5cfb73f31661103698fdb1c00e8a1e16f9981e Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* | Enable parts of tst_QWebEnginePage::textSelectionAllan Sandfeld Jensen2015-09-011-6/+16
| | | | | | | | | | | | | | | | We can support the basics of the test though we are missing the actions to move selections. Change-Id: Iba1eae0d17857761145cd99c77a58a7d2f2b2c4c Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* | fix tst_QWebEnginePage::runJavaScript for "undefined"Joerg Bornemann2015-09-011-1/+1
| | | | | | | | | | Change-Id: Ic49f07ee1a1d0384eba33dd2090ebe2650600107 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* | adjust W_QTEST_MAIN to changes in QTestLibJoerg Bornemann2015-09-011-0/+5
| | | | | | | | | | | | | | | | Needed for BLACKLIST support. Change-Id: I43f84a3150d0336b3f1702329f0c386545633f51 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> 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>
* | Add invokable to QQuickWebEngineProfile to set cookie clientAndras Becsi2015-08-283-1/+49
| | | | | | | | | | | | | | | | | | This makes it possible to set a cookie client in the C++ part of a QtQuick application to receive notifications about cookies. Add setting for blocking third party cookies to quicktestbrowser. Change-Id: I627eaab067e92a7be5b36ffed68794e54c7be0e8 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* | fix automatic resource file inclusionJoerg Bornemann2015-08-262-2/+2
| | | | | | | | | | | | | | | | | | Commit c7334fbc broke the automatic resource file inclusion. qmake's exists function checks at the location of the .pri file, not the location of the .pro file. Change-Id: I54f1bc664c06c5675ef26341619142bc58f0831e Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* | Widgets: Add fullscreen supportSzabolcs David2015-08-263-1/+64
| | | | | | | | | | | | Change-Id: Ibf1697d2bb3b3af5e7d71149305c5acffba43f0f Reviewed-by: Szabolcs David <davidsz@inf.u-szeged.hu> Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* | move automatic resource inclusion to pri filesJoerg Bornemann2015-08-2512-10/+4
| | | | | | | | | | | | | | Avoid code duplication. Change-Id: Icd270ff4e45112111b7eb9590e415947f63ce15b Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* | do not define TESTS_SOURCE_DIR in core testsJoerg Bornemann2015-08-251-3/+0
| | | | | | | | | | | | | | It's currently unused, and we can use QFINDTESTDATA instead. Change-Id: Id439b8b6ea3c9dbf5299c271d3974c11a44675bc Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* | Merge branch '5.5' into 5.6Allan Sandfeld Jensen2015-08-184-8/+141
|\| | | | | | | Change-Id: I9977663123560a22f493b8c02d02de8897b38666
| * Add tst_download QML test caseAdam Kallai2015-07-143-0/+141
| | | | | | | | | | Change-Id: I5acc79fe12885c473852eb6b71c68df5b9477d2e Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
| * Remove obsolete settings from widget tests.priAndras Becsi2015-06-301-8/+0
| | | | | | | | | | | | | | This was inherited from QtWebKit and does not make sense any more. Change-Id: I6d7441a3b46fc10d045a281ac4a57527578821b5 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* | Fix loadProgress QML auto testPeter Varga2015-08-061-2/+19
| | | | | | | | | | | | | | | | | | The minimum loading progress value has been changed that ruined the test. Improve the test by testing the order of the loading progress values instead of the minimum value. Change-Id: I3472323f2233e75cd8e334a1d442035a5ecac32e Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* | Add QML test for form validation featurePeter Varga2015-08-053-0/+166
| | | | | | | | | | | | Change-Id: I508aabbdd6a33e7ed8edcd7438e71297d4c0e895 Reviewed-by: Szabolcs David <davidsz@inf.u-szeged.hu> Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* | Add API for intercepting url requestsAndras Becsi2015-08-036-0/+185
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch is adding a QWebEngineUrlRequestInterceptor interface that can be subclassed to observe or intercept all resource requests making it possible to implement browser features like adblocking and setting custom request headers for url requests. The interceptRequest virtual function is executed on the IO thread. This patch also includes a unit test for the testable API parts. Change-Id: Ibe740fc55551a9a5da40794088ccb6d03d913631 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com> Reviewed-by: Martin Rotter <rotter.martinos@gmail.com> Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* | Update QtWebEngine version to 1.2Szabolcs David2015-07-303-3/+3
| | | | | | | | | | | | | | | | The revision was accidentally stepped twice. Change-Id: I5af7cba7d12be432d09cf6672dac422c72b09852 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu> Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* | Add WebEngineView transparency API testSzabolcs David2015-07-271-10/+22
| | | | | | | | | | | | Change-Id: I1d03cb1df8cd8ff3ccb3d929e9739542bddbd011 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> Reviewed-by: Jocelyn Turcotte (Woboq GmbH) <jturcotte@woboq.com>
* | Add cookie API testsAndras Becsi2015-07-168-0/+289
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This tests the part of the cookie API that can be tested locally. The notification about third-party cookies (acceptCookieFromUrl) can not be tested locally since it requires cookies to be set from a different domain than the main frame, which requires a remote host or a local web server with support for virtual DNS. Testing requires the ability to set cookies for local pages loaded through the qrc scheme. We could eventually extend this in the future to enable setting cookies on registered custom schemes, but for that we might have to implement our own cookie store. Since Chromium's cookie store relies on source url's to manage cookies and qrc:// cookies do not specify a domain, a specific source url is needed to be able to delete an individual cookie that has been set by a page loaded through qrc://. This patch requires a new function on QNetworkCookie to be able to forward the source url of the cookie to Chromium. Change-Id: I97dd04b27fbb8ec63060f9b741ad65c29a773a6c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* | Fix quicktestbrowser crash caused by wrong experimental versionAndras Becsi2015-06-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The version number of the experimental extension should not be changed but we should register the latest WebEngineView for experimental version 1.0. This fixes quicktestbrowser "Cannot assign to non-existent property "experimental"" issue on startup. Also update the QtWebEngine import version in the test browser so that all the new public APIs are visible. The QML code has already been updated in a previous patch. Change-Id: Ic8398df6e62ce7cb80c805171f3777d62c0c39a1 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* | QQuickWebEngineView: add activeFocusOnPress propertyPierre Rossi2015-06-0323-22/+104
| | | | | | | | | | | | | | | | | | | | This allows to use a WebEngineView to make a UI element that should not get focus, which can be useful inthe case of hybrid UIs. [ChangeLog][QtWebEngineQML][QQuickWebEngineView] Add activeFocusOnPress Change-Id: I0666f81badd135db0049e0dd7b0fc30d0765b1c9 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* | Merge remote-tracking branch 'origin/5.5' into devAndras Becsi2015-05-113-31/+42
|\| | | | | | | Change-Id: I122ca8d3438333c6b41f751c47b1ce1f9a7066b9
| * Quick: Share profiles between application windowsSzabolcs David2015-05-073-31/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The applications should not create new WebEngineProfiles for each window, because the WebEngineView can not adopt content from a different profile when the target of the NewViewRequest is a new window (SHIFT+click) or a dialog. This also adds a notifier signal to the profile property in order to avoid "non-NOTIFYable" warnings. Change-Id: I235789f9bfa1a216f99592204e50266242d0ef1c Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* | Add tst_filePicker.qml test for UIDelegateAdam Kallai2015-04-2410-1/+352
| | | | | | | | | | | | | | | | Testing single, multiple file and directory upload. Change-Id: I9da9e1f780a7f97a300fcaa38738ea781b85a4a7 Reviewed-by: Pierre Rossi <pierre.rossi@theqtcompany.com> Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
* | Merge remote-tracking branch 'origin/5.5' into devAndras Becsi2015-04-231-0/+3
|\| | | | | | | Change-Id: I6f913ebc7aed68d4b8c3f8666fd2389607b491b7