summaryrefslogtreecommitdiffstats
path: root/tests/auto
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Add getter/signal to get the render process PIDFlorian Bruhin2020-02-012-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This can useful for e.g. implementing something like the "Task manager" in Chromium or otherwise interacting with the render process (e.g. to kill it for some reason while debugging). [ChangeLog] Add a renderProcessPid() getter to (Q)WebEnginePage which allows getting the process ID of the underlying render process. Change-Id: Id5d59be9b6bd46ffc3a6aa480cb5ff7bd3b8aa31 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * | Add clear method to QQuickWebEngineHistoryJüri Valdmann2020-01-302-0/+8
| | | | | | | | | | | | | | | | | | Fixes: QTBUG-71619 Change-Id: I35c5ecbbe78da3114d30945f8ce030937e17d98e Reviewed-by: Michal Klocek <michal.klocek@qt.io>
| * | Switch network-service to default onAllan Sandfeld Jensen2020-01-304-11/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | Task-number: QTBUG-79890 Task-number: QTBUG-81556 Task-number: QTBUG-81557 Task-number: QTBUG-81614 Change-Id: I4c81ca1b1fb9c9595c1f670706948fcbe65bcd33 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * | Merge remote-tracking branch 'origin/wip/qtpdf' into 5.15Michael Brüning2020-01-2720-0/+1171
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | Initial merge of QtPdf into QtWebEngine. Fixes: QTBUG-69519 Change-Id: I48dc25a59f2c161bb231bd0fa60392eb70fe4e7d
| | * | Add QPdfSearchModel, QML PdfSearchModel and PdfPageViewShawn Rutledge2020-01-233-0/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This enables searching a PDF for a text string and getting the boundaries of the areas where it is found. The boundaries are returned as polygons intended to be rendered with PathMultiline. PdfPageView is a QML component intended to be a drop-in viewer for use in applications that need the most common PDF viewing functionality. More advanced applications are free to use it as a starting point for customization. Task-number: QTBUG-77507 Task-number: QTBUG-77514 Change-Id: Id08ac30224e41b6cdfb9300cc4288d5750259f78 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
| | * | tst_qpdfdocument: use QElapsedTimer instead of QTimeShawn Rutledge2019-11-251-2/+1
| | | | | | | | | | | | | | | | | | | | Change-Id: Ifdac9ae6b216605166cefc9dbab60f5ab4b1dcbf Reviewed-by: Michal Klocek <michal.klocek@qt.io>
| | * | Add QtPdf and QtPdfWidgets modulesMichal Klocek2019-11-252-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds two new modules to qtwebengine repository. New modules do not depend on webengine module, however webengine chromium source code and Chromium "gn" configuration is required to build QtPdf. Adding two unrelated modules to webengine might look crazy: however sharing gn build configuration and Chromium code base with necessary qt adaptations simplifies code maintenance and minimises required code checkouts. Back porting of security patches for Chromium also affects Pdfium. Moreover, Pdfium is no longer a separate project, but integrated into Chromium: therefore moving it out of Chromium source tree would require extra effort. Rename webengine-core feature to build-qtwebengine-core, this makes consistent feature naming with build-qtpdf At the moment two new modules have integrated build, with possible shortcuts: qmake -- --no-build-qtwebengine-core qmake -- --no-build-qtpdf Webengine build is disabled by default now. Change-Id: Iac3d9927d51f3ac316db0148d275eda843dcc19b Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
| | * | Initial import of qtpdf source codeMichal Klocek2019-11-251-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Code has been imported from git://code.qt.io/qt-labs/qtpdf to src/pdf, src/pdfwidgets, examples/pdfwidgets and tests/auto/pdf. Some git revision history was rewritten to remove conflicting files like src.pro, examples.pro, tests.pro, .gitingnore, .gitmodules, sync.profile, .qmake.conf, 3rdparty Removed unneeded leftovers after import. Change-Id: Ifc1e02828adfefe8db68d596cd2cb238de22408b Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> Reviewed-by: Kai Koehne <kai.koehne@qt.io>
| | * | Add QPdfPageRenderer classTobias Koenig2019-11-254-1/+191
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The QPdfPageRenderer renders a page of a QPdfDocument for a given zoom factor. Depending on its render mode, it does the rendering in the UI thread or a worker thread. Subsequent requests are queued and processed in order. Change-Id: I95820cd318cb443b2572f6d3db5a0bee53939bd1 Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
| | * | Add QPdfPageNavigation classTobias Koenig2019-11-254-1/+209
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The QPdfPageNavigation class encapsulates the logic of navigating inside a QPdfDocument. It has the notion of a 'current' page and provides slots to navigate to the previous/next page or jump directly to a given page. Additionally it provides properties to indicate whether there is a previous or next page, relative to the current one. Change-Id: I053f3c49ab4a70b2610b64d96d2c274c3d0f629b Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
| | * | Fix emission of QPdfDocument::pageCountChanged signalTobias Koenig2019-11-251-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Emit the signal whenever the amount of pages changes on loading/closing the document. Change-Id: I0555a9cad93cb1f125ded19889eda91e08725592 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
| | * | Add 'PageNumberRole' to QPdfBookmarkModelTobias Koenig2019-11-252-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Provide the referenced page of an bookmark entry through a model role. Change-Id: Ia1657d75acf0128389ef0de896b242b4e8df87fe Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
| | * | change the license to LGPLv3 (with the commercial option)Shawn Rutledge2019-11-252-5/+57
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I2caed38ece8067ecdad877dcc278f7828a3cb0bb Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
| | * | Add QPdfBookmarkModel classTobias Koenig2019-11-254-1/+254
| | | | | | | | | | | | | | | | | | | | Change-Id: I000a398d2347870916bd93b290a1ddf5023fb0ce Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
| | * | Refactor the state handling of QPdfDocumentTobias Koenig2019-11-251-22/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce a status property, which describes the current status of the QPdfDocument during loading/closing workflow. Change-Id: I2c095c41cfaacb4cd325682def71f80ffe6ab6d9 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
| | * | Add metaData() accessor method to QPdfDocumentShawn Rutledge2019-11-252-0/+28
| | | | | | | | | | | | | | | | | | | | Change-Id: Ib25ae8940ff8a35627093031a82c1f25c7c940fc Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
| | * | Add passwordChanged() signal to QPdfDocumentTobias Koenig2019-11-251-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The passwordChanged() signal is emitted whenever the password on the document is changed. Change-Id: I8c35274dba7160b81555eac5bbda37d47cb8c9b7 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
| | * | Add close() method to QPdfDocumentTobias Koenig2019-11-251-0/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The close() method will close an open document and emit the aboutToBeClosed() signal, so that other component, which keep a pointer to QPdfDocument, can react to it. Change-Id: I93200eb0b4bf96479fc114b43c9f6f2af4d15ffa Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
| | * | Skip build of auto-test when print support is disabled in the Qt buildSimon Hausmann2019-11-251-1/+1
| | | | | | | | | | | | | | | | | | | | Change-Id: I86bd5779ae4fee7dfba0b7a2121128120dbe3a5b Reviewed-by: Tobias Koenig <tobias.koenig@kdab.com>
| | * | Clean up the loadingSimon Hausmann2019-11-251-4/+11
| | | | | | | | | | | | | | | | Unify the load API and implementation to always go through FPDFAvail.
| | * | Provide unit test for password protected PDFsSimon Hausmann2019-11-252-0/+11
| | | |
| | * | Keep reading until all pages are availableSimon Hausmann2019-11-251-2/+4
| | | |
| | * | Provide async loading through QNetworkReplySimon Hausmann2019-11-252-10/+36
| | | |
| | * | Allow loading documents synchronously from a QIODeviceSimon Hausmann2019-11-251-17/+32
| | | |
| | * | Added basic rendering and page size getterSimon Hausmann2019-11-251-2/+8
| | | |
| | * | Implement basic document loading from a fileSimon Hausmann2019-11-253-0/+54
| | | |
| | * | Re-organize the build system to turn this into a full-fledged moduleSimon Hausmann2019-11-251-0/+0
| |/ / |/| |
| * | Merge branch '5.14' into 5.15Allan Sandfeld Jensen2020-01-233-28/+85
| |\| | | | | | | | | | Change-Id: I1230ec3a854c0798fa4f7960642e988b917f431e
| | * Update navigation actions when load finishes in a subframePeter Varga2020-01-221-7/+26
| | | | | | | | | | | | | | | | | | | | | Fixes: QTBUG-81521 Change-Id: I8ca82224cd834b667471d1e96a44430164d3669e Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
| | * FIXUP: Un-blacklist tst_qwebenginepage::fullScreenRequested() on WindowsTamas Zakor2020-01-221-20/+40
| | | | | | | | | | | | | | | Change-Id: I3fc41f664bf79ff6379c943411f7d38d0b4fa962 Reviewed-by: Kirill Burtsev <kirill.burtsev@qt.io>
| | * Merge remote-tracking branch 'origin/5.14.1' into 5.14Allan Sandfeld Jensen2020-01-202-8/+9
| | |\ | | | | | | | | | | | | Change-Id: Ic2b5f2a3e6f5af56d92652e57c05a631481201b3
| | * | Fix overriding shortcuts in password input fields on WindowsPeter Varga2020-01-151-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Windows IME does not support hidden text therefore IME input is disabled on password fields. The shortcuts are supposed to be overridden in input fields. Checking the keyboard focus on an input field is done by verifying if the IME is enabled. This won't work with password fields on platforms where hidden text is not supported, so also check if the Qt::ImhHiddenText IME hint is set. Fixes: QTBUG-81206 Change-Id: I81870beb556a9dda67295496dad8b672fbc5eba2 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| | * | Fix conversion of tabpanel aria rolePeter Varga2020-01-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Task-number: QTBUG-78284 Change-Id: Ie3bf247752308fb104ab0f244736bd3a8d070762 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * | | Fix deprecation warningsKirill Burtsev2020-01-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Suggested changes: * endl -> Qt::endl * {} for default QFlags * QString -> QStringLiteral for QStringList::join * QNetworkReply::error -> networkError Change-Id: I03919ab0675a9beb64bd176e6c681a338b08b51e Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
| * | | Merge "Merge remote-tracking branch 'origin/5.14.1' into 5.15"Michael Brüning2020-01-1710-166/+48301
| |\ \ \
| | * \ \ Merge remote-tracking branch 'origin/5.14.1' into 5.15Michael Brüning2020-01-1710-166/+48301
| | |\ \ \ | | | | |/ | | | |/| | | | | | | | | | | | | | | | | | | | | Conflicts: .qmake.conf Change-Id: I2f035e56cc23bdb600f93d601f0c1163ba32a1d5
| | | * | Add qtry prefix to webenginepage testMichal Klocek2020-01-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We got one failure at previous integration. Change-Id: Ic229a66bde151ea6a6a1805e38eb8e2f6f337107 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| | | * | Merge 5.14 into 5.14.1Kari Oikarinen2020-01-151-0/+172
| | | |\| | | | | | | | | | | | | | | | Change-Id: Ibc671c7a5ac4b070f3406c41598d071fd978e420
| | | | * Fix crash when handling QEvent::TouchCancelRomain Pokrzywka2020-01-091-0/+172
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TouchCancel events have an empty touchPoints() list, which first trips when accessing touchPoints[0], and later on crashes Chromium if we pass the empty list to m_touchSelectionController. Rework handleTouchEvent() to route TouchCancel events like other touch events, and make sure we pass a non-empty touchpoints list to Chromium. Task-number: QTBUG-80893 Change-Id: Ie8396a1191f72b5bbb2b047f131794b37cfded48 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
| | | * | Rework url changed logicMichal Klocek2020-01-142-6/+7
| | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Due security changes to prevent url spoofing, our implementation is getting extra invalidate url requests. Unfortunately, this breaks our url handling, which now gets lots of new back and fort url changed signals and make several unit test failures. After tedious investigation of Chromium omnibox handing and trying out different approaches, it seems that only sensible solution is to follow Chromium logic and make NavigationStateChanged to update 'ui' in asynchronous matter. This change tries not break any tests and simplify url handling. The only side effect of this change is that WebEnginePage::setContent will get extra 'url' signal of initial 'urlData' and later 'baseUrl' change is emitted. Fix one of qml tests which did not expect to have url on LoadStartedStatus. Task-number: QTBUG-63388 Task-number: QTBUG-48995 Change-Id: Id347f4325c036e16bfae7bf2f694905e0f21f8d7 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| | | * Un-blacklist tst_qwebenginepage::fullScreenRequested() on WindowsTamas Zakor2019-12-182-151/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The JavaScriptCallbackWatcher::wait() blocks the callback and it gets called after the wait() only. Replace JavaScriptCallbackWatcher() with QTRY_COMPARE() and QTRY_VERIFY(). These functions don't block the callback call. Remove JavaScriptCallback class from test. Also reimplement tst_qwebenginepage::runJavaScript auto test. Fixes: QTBUG-78015 Change-Id: I11e6f709c00a9121066c2554508c8312c1e33c12 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| | | * Fix Q(Quick)WebEngineDownloadItem::setDownloadDirectory()Tamas Zakor2019-12-183-7/+134
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Keep the custom file name if the calling order of setDownloadDirectory() and setDownloadFileName() changes. Also do not emit patchChanged signal twice if setDownloadDirectory() changes the uniquifier of the file name. Add TempDir for qml auto tests what uses QTemporaryDir() to create temporary directory for downloads. See https://cgit.kde.org/messagelib.git/commit/?id=2c113dcb155b11bf2c0af3c85544962485784b26 for details. Fixes: QTBUG-80566 Change-Id: Ia76f263558eaf55cb297700407948523788c6229 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| | | * Add binary compatibility files for qtwebengineMilla Pohjanheimo2019-12-173-0/+47964
| | | | | | | | | | | | | | | | | | | | | | | | | | | | BC file built against 5.14.0 added. Change-Id: I6ca53448794081579c96effece4dbd870067d7bb Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
| * | | Fix QFlags warningsAllan Sandfeld Jensen2020-01-175-60/+60
| |/ / | | | | | | | | | | | | Change-Id: I2938d5a44df01c7d9c70e18ecc293fc91079e5bd Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
| * | Make tst_origins quieterAllan Sandfeld Jensen2020-01-151-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | Match many of the logged error messages to suppress them and test that they are emitted. Change-Id: Ia6e476f973fefdc4d044790000e550a782c55f9d Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
| * | Merge remote-tracking branch 'origin/5.14' into 5.15Allan Sandfeld Jensen2019-12-0610-94/+147
| |\| | | | | | | | | | | | | Fixes: QTBUG-80555 Change-Id: I4c7f69f697c09526f5f927948e6a6bf1c43fac17
| | * Merge remote-tracking branch 'origin/5.14.0' into 5.14Allan Sandfeld Jensen2019-12-043-10/+59
| | |\ | | | | | | | | | | | | Change-Id: I4f73d4b11bee795185d4eaae718d4cfdb3112100
| | | * Fix 'setDownloadDirectory' for download item on 'SavePage' actionKirill Burtsev2019-11-291-8/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Chromium's DownloadManager doesn't create its download items before path for saving page is confirmed. So assert inside updateDownloadPath was not correct. Moreover, the name is confusing because it's not really updating anything. Remove it and use ProfileAdapterClient::DownloadInfo timestamp to determine updated filename after directory change. Ammends recent new api for changing download directory 0884fab3b1. Fixes: QTBUG-80372 Change-Id: If9efb52979deb3cf21fc4e12989173c85e04e090 Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
| | | * Favicon touchIconWithSameURL test: fix waiting on wrong spyKirill Burtsev2019-11-281-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Amends fc0dbde734 timeouts adjust for slower CI Change-Id: I77bacfb973cfe8e2c259a31d58f439ffcae7b87f Reviewed-by: Michal Klocek <michal.klocek@qt.io>
| | | * Update find request id when a new search interrupts an ongoing searchPeter Varga2019-11-281-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the new test became flaky it might happen because the first text search finished before the second findText() call. This is very unlikely, but in this case the test should be modified to not to check if the first find failed. The point is to check we get the correct amount of signals and the second search doesn't assert. If the callbacks will be removed in Qt6, it should be re-considered to remove the "unfinished find" workaround and trigger the first successful findTextFinished() signal even if it happens in the middle of another search. Fixes: QTBUG-80086 Change-Id: I9c1ce20fc43fd81e8af784385a00ac2e7f7603b7 Reviewed-by: Kirill Burtsev <kirill.burtsev@qt.io>