summaryrefslogtreecommitdiffstats
path: root/tests/auto/quick
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | Fix QML geolocation testAllan Sandfeld Jensen2016-05-313-3/+4
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | The test had a race condition and never waited for success or failure. In addition it didn't handle the case where there is no location service available. Change-Id: Icac02d0cc6396f31fed83b8b77b691ba872ac2f0 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* / / Remove obsolete testsAllan Sandfeld Jensen2016-05-282-26/+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>
* | Unskip test_errorPageEnabled in tst_favicon.qml testAdam Kallai2016-05-251-8/+4
| | | | | | | | | | | | | | | | | | - Unskip this test becuse the releted issue is already fixed. - It is worth to restore the initial page before each test functions, not only when there was icon url. Change-Id: I2a71e026ab3ffabb8de191b7296a67ac44479934 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Update test_promptSzabolcs David2016-05-221-2/+1
| | | | | | | | | | | | | | | | | | | | If the user clicks "cancel" the prompt() method returns null. This is the expected behavior in browsers, see the specification: https://dev.w3.org/html5/spec-preview/user-prompts.html Change-Id: I2089b7fe551d454904bc1b5b07a28e5e49ba8dfd Task-number: QTBUG-51749 Reviewed-by: Michael Brüning <michael.bruning@theqtcompany.com>
* | Combine candidate icons for a page into a single iconPeter Varga2016-05-049-12/+72
| | | | | | | | | | | | | | | | | | | | | | | | For the Widget API the QIcon returned by QWebEnginePage::icon() function contains all the candidate icons for the current page. For the Quick API the QQuickWebEngineFaviconProvider provides the best quality icon for the requested size from the candidates. Task-number: QTBUG-51179 Change-Id: I42b8427f957e2f2fc745dd0111bedcc71b577216 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* | Cleanup license leftoversMichal Klocek2016-05-033-54/+81
| | | | | | | | | | Change-Id: Ie0ecb1808c6b6a689ef29d7fa4831ca0a2e92721 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* | Make public API test up to dateAdam Kallai2016-05-021-0/+168
| | | | | | | | | | Change-Id: I5560f761551d8990d4b8bfb8389b746f37848c86 Reviewed-by: Michael Brüning <michael.bruning@theqtcompany.com>
* | Merge remote-tracking branch 'origin/5.6' into 5.7Allan Sandfeld Jensen2016-04-254-0/+151
|\| | | | | | | Change-Id: I329397621f19ba3890be5daf44a6bb2d668ad2d8
| * Use the temporary zoom factor to set the zoom factorMichael Bruning2016-04-211-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * Add tst_settings.qml QML test caseAdam Kallai2016-04-203-0/+131
| | | | | | | | | | | | | | | | | | - Add test for localStorageEnabled setting. - Add test for javascriptEnabled setting. Change-Id: I7a67c24bdf76409148e88500d9a7a092f7896493 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu> Reviewed-by: Michael Brüning <michael.bruning@theqtcompany.com>
* | Add QQuickWebEngineFaviconProviderPeter Varga2016-04-205-8/+101
| | | | | | | | | | | | | | | | | | The new QQuickImageProvider subclass is used to access downloaded icons from the FaviconManager via the Quick API. Change-Id: I6a52d3c737b2260cf480167764a931915cd99cab Task-number: QTBUG-51179 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* | Merge branch '5.6' into 5.7Allan Sandfeld Jensen2016-04-115-3/+27
|\| | | | | | | Change-Id: I53645ee5405b1c43807123fd3c196e314cfd1ce9
| * Blacklist tst_QQuickWebEngineView::transparentWebEngineViewsJoerg Bornemann2016-03-311-0/+2
| | | | | | | | | | | | | | | | This test is failing on 32 bit Windows. Unfortunately, we couldn't reproduce the failure locally yet. Blacklist the test for now. Change-Id: I7bdbc52033ccc0ed16ccf934418cc56a7783f88b Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
| * Purge sRGB chunks from PNGs in test.Edward Welbourne2016-03-301-0/+0
| | | | | | | | | | | | | | | | Subjects each *.png file that matched grep -law "sRGB" to: pngcrush -ow -brute -rem allb -reduce -force Change-Id: I0fe8ea5a1c89d5c9c0dce765607e55ae9e9cf9fd Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
| * Move loadVisuallyCommitted signal to the test support APISzabolcs David2016-03-253-3/+25
| | | | | | | | | | Change-Id: I877bbd8bc5c710370f135a27bcd7f0f7c95a7292 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* | QML API for context menu dataAllan Sandfeld Jensen2016-04-091-0/+1
| | | | | | | | | | | | | | Adds QML API for the context menu data and improved spell checking API. Change-Id: I47868bdfaaec42d13aa7693bdc14bc75b008b862 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* | Clean up qml testsPeter Varga2016-04-067-16/+0
| | | | | | | | | | | | | | | | | | | | - Remove superfluous imports of QtWebEngine.experimental - Remove unused waitForViewportReady() - Remove "when: windowShown" from tests where UI is not used for testing Change-Id: I05362596ace44a490417dc61e6d0564b4004537e Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* | Add multi-sized favicon testPeter Varga2016-03-254-0/+27
| | | | | | | | | | | | Change-Id: Ib984c4fb3e9a2424ac09e4ab17a9bfc3f9627fb9 Task-number: QTBUG-51179 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* | Add settings for FaviconManager's icon download modesPeter Varga2016-03-252-0/+118
| | | | | | | | | | | | Change-Id: I8e4b11089de29623ed39ec6b13fe30be734baa3e Task-number: QTBUG-51179 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* | Fix bestFavicon testPeter Varga2016-03-191-1/+8
| | | | | | | | | | | | | | | | Workaround the case when the page load finishes earlier than the icon url is updated and the test should wait more for the actual icon url. Change-Id: I9553bf444843e9932842ed5e61dfc87a8e970ad3 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* | Add callback to printing APIMichael Bruning2016-03-161-3/+12
| | | | | | | | | | | | | | Also corrects and updates the printToPDF docs to reflect recent changes. Change-Id: Iffe276a1046d6d55923939f9d72b97cd533017ff Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* | Re-skip failing error page disabled test for tst_favicon.Michael Bruning2016-03-161-0/+1
| | | | | | | | | | | | | | | | It is causing trouble in the CI and the bug that it was skipped for (QTBUG-48995) does not seem to be fixed yet either. Change-Id: If7f05cc943a357e5cdeffdd46b10da59ac220c1c Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* | Merge "Merge remote-tracking branch 'origin/5.6' into 5.7" into refs/staging/5.7Allan Sandfeld Jensen2016-03-117-11/+32
|\ \
| * | Merge remote-tracking branch 'origin/5.6' into 5.7Allan Sandfeld Jensen2016-03-087-11/+32
| |\| | | | | | | | | | Change-Id: Ieab3c4a6d16b1d7b7c0243ff8898f81807e7b1fc
| | * Blacklist test_geoPermissionRequest on Windows as well.Michael Bruning2016-03-071-0/+1
| | | | | | | | | | | | | | | Change-Id: I94aa72517dfedc22d9100b85e4d66dbf67bb3207 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
| | * Enable qmltests in CIJoerg Bornemann2016-03-014-8/+22
| | | | | | | | | | | | | | | | | | | | | | | | Blacklist failing tests. Stabilize some tests. Change-Id: I9fba81fb70f5b358108ef6935e363297e2658f79 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
| | * Enable QtQuick inspectorserver test in CIJoerg Bornemann2016-02-252-1/+5
| | | | | | | | | | | | | | | Change-Id: I7c5f59a48688ca73889605ef5850ebedf43782de Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
| | * Enable WebEngineView tests in CIJoerg Bornemann2016-02-241-1/+0
| | | | | | | | | | | | | | | | | | Change-Id: I6534d36279feffb66eb6a897ed31d4b013b39691 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
| | * Enable qquickwebenginedefaultsurfaceformat test in CIJoerg Bornemann2016-02-221-1/+0
| | | | | | | | | | | | | | | Change-Id: Ia0dcc45a3b63da49b82cd4f018979df43e847273 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
| | * Enable quick/publicapi test in CIJoerg Bornemann2016-02-222-2/+2
| | | | | | | | | | | | | | | | | | | | | Also, update the API list. Change-Id: Ib21feb823ecf58c071316f796a7e251c9f99bff4 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
| | * Prepare separate enabling of QtQuick autotestsJoerg Bornemann2016-02-227-3/+7
| | | | | | | | | | | | | | | Change-Id: I330de920c339e31725d123eadf5dcc4227dd500f Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* | | Clean up FaviconManager and fix icon url in NavigationEntryPeter Varga2016-03-113-129/+67
| | | | | | | | | | | | | | | | | | Change-Id: I56a109c9071ef581c6a51b5b7b8ce5a2464c6a76 Task-number: QTBUG-51179 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* | | Fix and skip failing Quick tests after Chromium 49 updatePeter Varga2016-03-106-4/+7
| | | | | | | | | | | | | | | Change-Id: I1d8d221787c11bc8461e4989b0e5a5ece1c7d572 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* | | Fix iconChanged signal in Quick APIPeter Varga2016-03-081-16/+8
|/ / | | | | | | | | | | | | | | | | | | Do not emit iconChanged signal twice if icon url does not change. This fix implements the same behavior for icon handling in Quick as in the Widget API. Change-Id: I9fcc27c9cec3cbef74fb0a71026065e359a5cbc3 Task-number: QTBUG-51179 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* | Add rudimentary printing API and add it to example.Michael Bruning2016-02-161-0/+15
| | | | | | | | | | Change-Id: I48141d07e9744bb21d64a5c8724579cb469ba35c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* | Merge remote-tracking branch 'origin/5.6' into devLiang Qi2016-02-103-0/+155
|\| | | | | | | | | | | | | | | 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-043-0/+155
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | Merge branch '5.6' into devAllan Sandfeld Jensen2016-02-042-9/+30
|\| | | | | | | Change-Id: I0bb971f01ee1e02da768f336680c8ec0254ab2b0
| * Stabilize tst_QQuickWebEngineViewGraphicsJoerg Bornemann2016-01-241-3/+4
| | | | | | | | | | | | | | | | Fix a race condition where loadVisuallyCommitted was emitted before the QSignalSpy in waitForSignal could be connected. Change-Id: I7fcb9e3b423430405daf99c588ae8b70645333a1 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
| * Stabilize tst_QQuickWebEngineViewJoerg Bornemann2016-01-221-6/+26
| | | | | | | | | | | | | | | | Remove the 200 ms wait and instead try to grab the window contents repeatedly until a certain condition is met. Change-Id: I96dd720ef41ced9bdb48772939d25dd957081c33 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* | Add FaviconManager to corePeter Varga2016-02-0314-30/+287
| | | | | | | | | | | | | | | | | | 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>
* | Updated license headersJani Heikkinen2016-02-0138-852/+378
|/ | | | | | | | | | | | From Qt 5.7 -> tools & tests are licensed under GPL v3 with some exceptions, see http://blog.qt.io/blog/2016/01/13/new-agreement-with-the-kde-free-qt-foundation/ Updated license headers to use new GPL-EXCEPT header (in those files which will be under GPL 3 with exceptions) Change-Id: I59fcbb8cd1ca42b1a5ef96577bcb35ea0af01b71 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Fix tst_QQuickWebEngineViewGraphics::showHideShow for OS XJoerg Bornemann2016-01-131-1/+8
| | | | | | | | | Defer the TestView::exposeChanged signal. On OS X exposeEvent is called directly by view->show(). Thus exposeChanged was emitted before signalSpy.wait() was called and the check on wait consequently failed. Change-Id: Ie318f8ddc0d1bcc35a14c73e615798b3e164739c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Stabilize tst_QQuickWebEngineViewGraphics::showHideShowJoerg Bornemann2015-12-211-3/+3
| | | | | | | Increase wait timeouts to let the test pass under heavy conditions. Change-Id: I412d5d6a33c33ce698e15a487355c5a5e51a9905 Reviewed-by: Michael Brüning <michael.bruning@theqtcompany.com>
* Stabilize test_urlPropertyv5.6.0-beta1Allan Sandfeld Jensen2015-12-141-0/+2
| | | | | | | | | | Pulls in Chromium patches that fixes crashes in the test, and add a missing waitForLoadSucceeded, that otherwise might cause the next test to fail. Task-number: QTBUG-48031 Change-Id: I4844aee0ccf159e50de955f3b3da704160a4a0f5 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* Make QQuickWebEngineProfile publicKai Koehne2015-12-121-1/+1
| | | | | | | | | Make QQuickWebEngineProfile a publicly exported class. This allows users to set up and manipulate the profile from C++, and removes the ugly hack needed to access the cookie store. Change-Id: I99e1a8c2cb99d9d1a14e1c78bec5948ba1282fb3 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Build qmltests only if QML testsupport API is availableJoerg Bornemann2015-12-111-1/+2
| | | | | Change-Id: Id54356024f60e5f877271b29895912e2bf0cb84f Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Fix path issues tst_QQuickWebEngineViewJoerg Bornemann2015-12-111-25/+36
| | | | | | | | | Compare URLs, not paths. This saves us a bunch of conversions and fixes the test on Windows. Change-Id: Iaf91e7be2b015545bb7b2b1141bc316f85e629ea Reviewed-by: Michael Brüning <michael.bruning@theqtcompany.com> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Update tests/auto/quick/publicapiJoerg Bornemann2015-12-111-1/+5
| | | | | Change-Id: Ia40857762cffb8e9fc47b55e3f9e41a177a6fa26 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
* Stabilize tst_download.qmlJoerg Bornemann2015-12-101-4/+8
| | | | | | | | | Connect to WebEngineViewDownloadItem.stateChanged to collect state changes. This makes sure that state changes from tests that ran before do not interfere with the current test. Change-Id: I360ac325711bf041f82375b3714a9cfe7a42398c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>