summaryrefslogtreecommitdiff
path: root/tests/auto/pdfquick
Commit message (Collapse)AuthorAgeFilesLines
* Fix not working password test for QPdfQuickMichal Klocek2023-03-021-5/+0
| | | | | | | | | | | | | In qml url can have different schemas like 'qrc' 'file' 'assets'. Make correct conversion so file can be loaded. Note check isLocalFile() is not true for qrc scheme. Fixes: QTBUG-106072 Pick-to: 6.5.0 6.5 6.4 Change-Id: I4dcc969e4c6d9b3f58ea5d81d20d8e81b55edfde Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* Add TESTDATA to qtpdf tests and fix data urlMichal Klocek2023-02-231-4/+4
| | | | | | | | | | Make cmake aware of test data, this will make data deployable on android. Task-number: QTBUG-83459 Change-Id: Id4271f54f8351e955a6ee57c3a36656d69a2a682 Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io> Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
* Blacklist mulipageview tests on androidMichal Klocek2023-02-211-0/+9
| | | | | | | | | | | | | | | | | Password test does not pass on emulator, the same issue exists already on windows. Navigation uses hardcoded values for event which ends with "Mouse event at 465, 65 occurs outside target window (320x616)" due to smaller screen of android emulator. Blacklist tests for now. Task-number: QTBUG-83459 Task-number: QTBUG-106072 Task-number: QTBUG-111306 Change-Id: Iacc4c7711d58b0ffb6cdda3474b4d59b628ca5f7 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Retire the qt_parse_all_argumentsAmir Masoud Abdol2023-02-081-2/+2
| | | | | | | | | | | To do so, we need to deal with the macros a bit differently, so here, I replaced the macros with available utility functions, and added one for the QTWEBENGINEPROCESS_NAME. Fixes: QTBUG-110873 Task-number: QTBUG-99238 Change-Id: I29b41ffb8059511d2d93bfc01d40308aedaa8ad4 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Replace uses of deprecated _qs with _sPeter Varga2023-02-021-7/+9
| | | | | | | Pick-to: 6.4 6.5 Task-number: QTBUG-101408 Change-Id: Ie8a7944c3ded5662953bed00f022905f5805275e Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Port from container::count() and length() to size() - V4Marc Mutz2022-10-111-16/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a semantic patch using ClangTidyTransformator as in qtbase/df9d882d41b741fef7c5beeddb0abe9d904443d8, but extended to handle typedefs and accesses through pointers, too: const std::string o = "object"; auto hasTypeIgnoringPointer = [](auto type) { return anyOf(hasType(type), hasType(pointsTo(type))); }; auto derivedFromAnyOfClasses = [&](ArrayRef<StringRef> classes) { auto exprOfDeclaredType = [&](auto decl) { return expr(hasTypeIgnoringPointer(hasUnqualifiedDesugaredType(recordType(hasDeclaration(decl))))).bind(o); }; return exprOfDeclaredType(cxxRecordDecl(isSameOrDerivedFrom(hasAnyName(classes)))); }; auto renameMethod = [&] (ArrayRef<StringRef> classes, StringRef from, StringRef to) { return makeRule(cxxMemberCallExpr(on(derivedFromAnyOfClasses(classes)), callee(cxxMethodDecl(hasName(from), parameterCountIs(0)))), changeTo(cat(access(o, cat(to)), "()")), cat("use '", to, "' instead of '", from, "'")); }; renameMethod(<classes>, "count", "size"); renameMethod(<classes>, "length", "size"); a.k.a qt-port-to-std-compatible-api V4 with config Scope: 'Container'. Change-Id: I3e6fef8eca212da0c4f0b464545ba96183b4476f Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* CMake: use LIBRARIES rather than PUBLIC_LIBRARIESEdward Welbourne2022-09-121-1/+1
| | | | | | | The longer name is now deprecated in favor of the shorter. Change-Id: I3b5ddd4c221ebdddced3a624234e40d8c00b3d8e Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Add tst_MultiPageView::navigation() testShawn Rutledge2022-09-013-0/+138
| | | | | | | | | | | | The navigation() test is a high-level one to verify that the navigation stack works and that the TableView jumps to the expected locations inside the document when we go to pages, click links and use the forward() and back() methods. It's similar to the internalLink() test, but more programmable. Pick-to: 6.4 Change-Id: I337e2ae283213238288a172d1bab3df07a1395e0 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
* Blacklist tst_MultiPageView::password on WindowsShawn Rutledge2022-08-311-0/+3
| | | | | | Task-number: QTBUG-106072 Change-Id: Iecc763f0f8cd5f1b83588a31f1de4fd4f8c0055e Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* Begin adding Qt Quick Pdf testsShawn Rutledge2022-08-318-0/+761
...starting with tests for the PdfMultiPageView component. The file bookmarksAndLinks.pdf is fx/other/bookmarkgetcolor.pdf from https://pdfium.googlesource.com/pdfium_tests pdf-sample.protected.pdf is from 55b863f2dd2773290c63259c3835b19dcb277098 The shared/util implementation is adapted from the Qt Quick 3D module, with showView() adapted from qtdeclarative's viewtestutils.cpp. Pick-to: 6.4 Change-Id: I1458968846d33f262465a368fdaec771d4979b67 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>