aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Make some qHash and comparison operators overloads hidden friendshjk2021-12-061-4/+5
| | | | | | | Restricts lookup scope more to necessary bits. Change-Id: Ia42c95aaa70534843b7f6a90bfc56d2a1202c612 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Tests: Fix setting up env for tests on WinChristian Stenger2021-11-301-3/+3
| | | | | | | | ..when testing MinGW env inside a MSVC dumper tests. Amends 652b9844e6fab. Change-Id: I259e4392078628f6ec235291ac101bad973ff70d Reviewed-by: David Schulz <david.schulz@qt.io>
* Merge remote-tracking branch 'origin/6.0'Eike Ziller2021-11-191-16/+15
|\ | | | | | | Change-Id: I3bab4e31bc5993c59c7025ebde0846bf6c75810e
| * QmlDesigner: Add imports for qml document parserMarco Bubke2021-11-171-16/+15
| | | | | | | | | | | | | | Task-number: QDS-5174 Change-Id: I78b7b31108b498035eccb8385ffab621c727cd89 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* | Merge remote-tracking branch 'origin/6.0'Eike Ziller2021-11-111-0/+40
|\| | | | | | | | | | | | | | | | | Conflicts: src/libs/utils/theme/theme_mac.mm src/plugins/android/androiddeployqtstep.cpp src/plugins/debugger/lldb/lldbengine.cpp Change-Id: I5f2c62e0bce6c91a53a554b3278dbe23ff7dde36
| * CPlusPlus: Fix "Find references"Christian Kandeler2021-11-091-0/+40
| | | | | | | | | | | | | | | | | | ... for certain types of template/namespace combinations. This essentially reverts 2798c11d1d. Fixes: QTCREATORBUG-26520 Change-Id: I1ab0e4e19bd09695d1536bf6f10960107e9ecbc4 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | Utils: FilePathify Environment::{ap,pre}pendOrSetPath etchjk2021-11-101-3/+3
|/ | | | | Change-Id: Idfa5ec247337570936b0236cab9d3a5669792ca0 Reviewed-by: David Schulz <david.schulz@qt.io>
* QmlJS: Soften strict equality check Pt IIChristian Stenger2021-11-081-7/+7
| | | | | | | | | | | Disable strict equality check for undefined values as there are too many ways the code model just assumes "undefined" as the information would be present at runtime only or to avoid too complex evaluation. Task-number: QTCREATORBUG-25917 Change-Id: I7c6da04f52ba767c4ef5c21078dc14ac4de86687 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* Flush finished() signal when waitForReadyRead() was calledJarek Kobus2021-11-041-1/+33
| | | | | | | | Apparently the QProcess behaves like that. Change-Id: Idb1993b8abccbd7943582d41bd456eacc9a1c185 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Squish: Don't wait for nothing in tst_simple_debugRobert Löhning2021-11-011-2/+3
| | | | | Change-Id: I74bb40b03fa13568571f4009618c523bf9c13c63 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Remove unneeded includes of QProcess from cpp filesJarek Kobus2021-11-011-1/+0
| | | | | | | | QProcess wasn't used in these files. Change-Id: I24900bcf312eb6ea1ca3bc0c753cebb505ec552b Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: hjk <hjk@qt.io>
* Squish: Update for running tst_generic_highlighterRobert Löhning2021-10-292-10/+7
| | | | | Change-Id: I262fb7a7223e235708cbc7e8e382a2448a2f8c84 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Core: ExternalTool: Use FilePath also for executableshjk2021-10-291-4/+4
| | | | | | Change-Id: I6ec914b68ae41f9ee5eb28416c29d0431c5ab880 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Squish: Update for running tst_APTW01Robert Löhning2021-10-291-1/+1
| | | | | Change-Id: I95ac2d2209dbc47e316b746313e4545a1b80ab55 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* TextEditor: Add highlighting category for namespacesChristian Kandeler2021-10-291-25/+26
| | | | | | | | ... and make use of it in the built-in code model and with clangd. Task-number: QTCREATORBUG-16580 Change-Id: I8c331f56aa1bbf91c9f768be82a779a72f40c4c7 Reviewed-by: David Schulz <david.schulz@qt.io>
* TextEditor: Allow special highlighting for static membersChristian Kandeler2021-10-281-15/+18
| | | | | | Task-number: QTCREATORBUG-9659 Change-Id: Idae529fd876ba5f555c76e4d282efc9263263d6c Reviewed-by: David Schulz <david.schulz@qt.io>
* Squish: Update for running suite_CSUPRobert Löhning2021-10-273-7/+9
| | | | | Change-Id: I2773f98af0a6656fcf1362b4dcd2d853cc2aea81 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* QmlJS: fix building testsDavid Schulz2021-10-271-1/+1
| | | | | | | amends d68bb4687c4cce9087ff627b1257edc7cd440aba Change-Id: I7fc5b260a7748829038b8494e75e4cfc5a56945b Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* CppEditor: Change parsing opposite bracketArtem Sokolovskii2021-10-252-3/+43
| | | | | | | | | | | | | | Fixed behavior: - when comparing sign was determined as angle bracket - when in complex combination brackets, an opposite bracket was detected not correct - not correct mismatch case highlightning Added tests for the cases form bug 26395 Fixes: QTCREATORBUG-26400 Fixes: QTCREATORBUG-26395 Change-Id: Ic45566d2677f80fb9a8e4fe830307254dd1db51d Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Android: remove unauthorized field form AndroidDeviceInfoAssam Boudjelthia2021-10-251-3/+0
| | | | | | | | | | | This is not really needed anymore, it was mainly used for physical devices to report whether they need user authorization to be used via adb. This is now handled by IDevice::DeviceState, where a Connected device is unauthorized, otherwise any physical device is ReadyToUse if authorization is good. Change-Id: If5c1e49b98063eabe4205cd8adb5b11515e1e1de Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Android: remove AndroidDeviceType and State from AndroidDeviceInfoAssam Boudjelthia2021-10-251-6/+6
| | | | | | | | | No need to have these enums which are now only a duplication of IDevice::MachineType and IDevice::DeviceState. Change-Id: Icc3f112f2670c7354bb282b36fad0f0631b9e047 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: hjk <hjk@qt.io>
* Refactor HighlightingResultReporterJarek Kobus2021-10-211-27/+7
| | | | | | | | | | | | | | In some unlikely circumstances it may happen that HighlightingResultReporter might be destroyed before returning from the HighlightingResultReporter::start() function. This may lead to undefined behavior. Refactor the HighlightingResultReporter so that instead of using QRunnable subclass we define simple function returning the QFuture object directly. Change-Id: Ib833771a7e46e87c83d10b59ca056a0147fabe88 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* QmlDesigner: Use one synchronization structMarco Bubke2021-10-203-1957/+1208
| | | | | | | | | | | The arguments of the synchronization function are changing constantly, so all tests have to adapted even for default arguments. To reduce this changes now a struct is used as parameter. Task-number: QDS-5196 Change-Id: Id3b6a530bcb8ab043eccce6526088f345d746235 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* QmlDesigner: Introduce different modules for cpp, qml and directoriesMarco Bubke2021-10-204-31/+32
| | | | | | | | | | There are now different modules for qml, cpp and directory imports. Cpp imports are qml import append by "-cppnative". Task-number: QDS-5196 Change-Id: I599b224892c5ada0224a765d0bde8b32de20b061 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* QmlDesigner: Support multiple module ids per typeMarco Bubke2021-10-207-1706/+1220
| | | | | | | | | | | The type will be use source id and name instead of module id and name as key. Task-number: QDS-5236 Task-number: QDS-5238 Change-Id: Ibc9c298dc0a6363b630173ec4981d574cecd02ff Reviewed-by: Tim Jenssen <tim.jenssen@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* QmlJS: Soften strict equality checkChristian Stenger2021-10-151-2/+22
| | | | | | | | | | | | | Judging on the sense of a strict equality check depends on different aspects. As attached properties cannot be inspected easily and e.g. function calls cannot be evaluated as they may have different return values for different code paths we need to soften the check to avoid false positives. Fixes: QTCREATORBUG-25917 Change-Id: I121335a387eb235090346162df4703d3000b7426 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* QmlDesigner: Add QmlDocumentParser and QmlTypesParserMarco Bubke2021-10-148-70/+701
| | | | | | | | Task-number: QDS-5174 Task-number: QDS-5228 Change-Id: I0889e8d63b0260aeb0efae1b3c8a373c18ea1f03 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Move sdkmanager's sdk level parsing to AndroidConfigAssam Boudjelthia2021-10-131-0/+3
| | | | | | | | | | Both the sdkmanger and avdmanager (maybe more) need to parse the sdk level for packages and devices which may contain letters, make them use the same logic. Change-Id: Iff7fef3a66e00fac11b833f73f2f334a4cf1a766 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Docker: Also add Qt Quick stuff to test imagehjk2021-10-131-7/+12
| | | | | | | | | | | | | | | | Had to tweak things a bit, and the QML part doesn't start up yet: Starting docker://e5813ba3db76/data/dev/sessions/docker-quick-cmake/docker-quick-cmake... QML debugging is enabled. Only use this in a safe environment. QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-' QQmlApplicationEngine failed to load component qrc:/main.qml:2 module "QtQuick.Window" is not installed qrc:/main.qml:1 module "QtQuick" is not installed qrc:/main.qml:2 module "QtQuick.Window" is not installed qrc:/main.qml:1 module "QtQuick" is not installed Change-Id: If7ec4aebee27880e01af6184ae22509e97054137 Reviewed-by: David Schulz <david.schulz@qt.io>
* ClangCodeModel: Optimize getAstPath()Christian Kandeler2021-10-111-3/+3
| | | | | | | | | | Profiling has shown that this function is a hotspot. Luckily, it can be easily sped up by taking advantage of the fact that the AST nodes are (mostly) sorted by range, allowing us to employ a binary search when looking for a given range. Change-Id: I950c150543ff68b975d36c6fb652d366b93ea3b2 Reviewed-by: David Schulz <david.schulz@qt.io>
* Merge remote-tracking branch 'origin/5.0' into 6.0Eike Ziller2021-10-082-10/+32
|\ | | | | | | | | | | | | | | | | Conflicts: cmake/QtCreatorIDEBranding.cmake qbs/modules/qtc/qtc.qbs qtcreator_ide_branding.pri Change-Id: I87b19a51b1950d19eff95086848b0728ba2f0ebd
| * Squish: Stabilize tst_rename_fileRobert Löhning2021-10-071-5/+14
| | | | | | | | | | | | | | | | | | It takes a moment until the changed file appears in the project tree. A context menu opened in that time may be in an unexpected state, so wait until the renaming finished properly. Change-Id: I6e1941083737b2df5855b9b0e61a973c99831304 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
| * Squish: Update and stabilize tst_rename_fileRobert Löhning2021-10-071-2/+10
| | | | | | | | | | Change-Id: I1dae24e20d8c65b716dd988812eee013f0491603 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
| * Debugger: Tests: Fix warningsRobert Löhning2021-10-071-3/+8
| | | | | | | | | | | | | | To not confuse testers. Change-Id: I2190e85cea5b0e32af883d8caa368aef0f55befc Reviewed-by: hjk <hjk@qt.io>
* | qmldom: fix output pathTim Jenssen2021-10-061-2/+10
| | | | | | | | | | Change-Id: I137accdb788fa4686a0c70dfcc1b66a6c576dcff Reviewed-by: Cristian Adam <cristian.adam@qt.io>
* | Merge remote-tracking branch 'origin/6.0'Eike Ziller2021-09-302-10/+10
|\ \ | | | | | | | | | Change-Id: I9d25a7ac39b3619856fc8d8a6be6f91a403b3969
| * | QmlProject: port changes from QtForMcusChristiaan Janssen2021-09-302-10/+10
| | | | | | | | | | | | | | | | | | Task-number: QTCREATORBUG-26041 Change-Id: I5068381fb2c4c901d8621e0b8358db77d2cb0b21 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* | | Merge remote-tracking branch 'origin/6.0'Eike Ziller2021-09-294-27/+34
|\| | | | | | | | | | | Change-Id: If773f217a9708ce0ad0b8adeefe3266ba0371a32
| * | Merge remote-tracking branch 'origin/5.0' into 6.0Eike Ziller2021-09-291-5/+22
| |\| | | | | | | | | | Change-Id: Iaa5a0fea546d4f28dbceae0458a325077ed382b7
| | * Tests: Fixup test expectationsChristian Stenger2021-09-281-4/+8
| | | | | | | | | | | | | | | | | | | | | Amends b64863806fdde. Change-Id: I8df23cc10d71760cacb03eb59b728400a4ef3c61 Reviewed-by: hjk <hjk@qt.io>
| | * Tests: Fix expectations in offset testChristian Stenger2021-09-271-6/+19
| | | | | | | | | | | | | | | Change-Id: I875966409d769fe19e615763c605c527398b01dd Reviewed-by: hjk <hjk@qt.io>
| * | Introduce Utils::SingletonJarek Kobus2021-09-283-22/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce Utils::Singleton class and Utils::SingletonWithOptionalDependencies class template that helps implementing singletons that depend on other singletons. It's guaranteed that whenever singleton B depends on singleton A, than A is always created before B is being created, and that the order of destruction is always opposite to the order of creation. Dependencies of singleton are listed as template arguments for SingletonWithOptionalDependencies class template. The first argument of SingletonWithOptionalDependencies class template is always a singleton class itself. Prepare a common interface for all singleton subclasses: SingletonSubClass *SingletonWithOptionalDependencies::instance(); Make instantiating singletons and its dependencies thread-safe. Create singletons on demand (only if some code needs them). It's not needed anymore to explicitly instantiate all required singletons in tests. Make it possible (and thread-safe) to instantiate ProcessReaper and LauncherInterface singletons in non-main threads. Make the following dependencies between existing singletons: SshConnectionManager depends on: -> LauncherInterface depends on: -> ProcessReaper Change-Id: Iefaacab561c2b3dcf07e7fafbb87339ea6a15278 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* | | QmlDesigner: Integrate QmlDomTim Jenssen2021-09-282-0/+66
| | | | | | | | | | | | | | | | | | Task-number: QDS-5172 Change-Id: Ib17c38ef7b89b05daababaad1f8e2dc39d53a2bf Reviewed-by: Marco Bubke <marco.bubke@qt.io>
* | | Ssh: Use FilePath for SshConnectionParameters::privateKeyFilehjk2021-09-281-2/+2
|/ / | | | | | | | | | | Change-Id: Ifaf97cc744f80e1fa0f4000aabf83671b2ffd972 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* | Core: Use FilePath for ExternalTool working directoryhjk2021-09-271-3/+4
| | | | | | | | | | Change-Id: Ifd295c3bd07b79f146b84fc27c117f42ba9b793f Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | QmlDesigner: Use ModuleId for Type instead of ModuleMarco Bubke2021-09-273-865/+1174
| | | | | | | | | | | | | | | | We already know the module id because it's the source id of the module. Change-Id: Ice241d38c12c7ca79a525464c53b7d552095a0fc Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* | QmlDesigner: Add minimal updatesMarco Bubke2021-09-271-0/+54
| | | | | | | | | | | | | | | | | | | | Exported type names are synchronized so that old type names are removed. Task-number: QDS-5130 Task-number: QDS-5126 Change-Id: I6e6482170c8197f37f60a57bdfb7f1b450001b4b Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* | QmlDesigner: Refactor ProjectStorageUpdater testsMarco Bubke2021-09-271-31/+68
| | | | | | | | | | | | Change-Id: I0174153a470ce3009945df9cd2a822150f2f19f4 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* | Editor: multi cursor supportDavid Schulz2021-09-277-1/+371
| | | | | | | | | | | | | | | | | | | | | | | | | | Adding a way to create multiple cursors that can insert/remove text at arbitrary positions in the document. Adding cursors is done by pressing alt + up/down or by clicking into the editor while holding the alt key. Fixes: QTCREATORBUG-16013 Change-Id: I495d27d95a3d277220946616ef30efc241da0120 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io> Reviewed-by: David Schulz <david.schulz@qt.io>
* | Use lowercase for Windows header for supporting cross-compilationOrgad Shaneh2021-09-271-1/+1
| | | | | | | | | | | | | | | | | | | | Linux mingw uses lowercase headers, so cross-building on Linux for Windows target must use the correct form. Windows is case-insensitive, so it won't affect host-native builds. Change-Id: Ic2140412bb367bbce83b5e2546d70e0936928c5c Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: David Schulz <david.schulz@qt.io>