aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Squish: Wait for a clean shutdown when restarting QCChristian Stenger2018-09-077-0/+7
| | | | | | | | | | | | | | | This fixes a race condition in tst_CSUP06 where the next run of QC removed .user* but the first instance was not completely finished with the shutdown process. The .user files of the project got updated (or recreated) before the second instance tried to open the same project again. Ensure the first instance is closed to be sure that project's .user files got created or updated before the second instance tries to remove and re-open them. Follow the same approach for other tests to avoid the same issue later on. Change-Id: I37721f4dd647f9bbf7c6fed6e753a2906e30db81 Reviewed-by: Robert Loehning <robert.loehning@qt.io>
* Squish: Stabilize tst_CSUP06Robert Loehning2018-09-071-0/+1
| | | | | Change-Id: I2cac53f69d15763770fe3955408867ec668bfccd Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Squish: Refactor starting Qt Creator from SquishChristian Stenger2018-09-0571-112/+91
| | | | | Change-Id: I7cbce7db2a22a7cb327965b9b7918eb46266b260 Reviewed-by: Robert Loehning <robert.loehning@qt.io>
* Tracing: Adapt aggregator test to new ctor signatureUlf Hermann2018-08-311-1/+2
| | | | | Change-Id: Ifb94c1e1f14b26aa2bb365cd08d36fa67642ecc7 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Squish: Fix checking for plugin loader issuesChristian Stenger2018-08-301-4/+4
| | | | | | Change-Id: Ibf894f3792f78c496be5fcbdfcd6c19b8b1246e4 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Robert Loehning <robert.loehning@qt.io>
* qbs build: Fix highlighter engine autotestChristian Kandeler2018-08-281-1/+0
| | | | | | | | We link against the TextEditor plugin as of 601eebd832, so don't pretend anymore that we are the plugin. Change-Id: I8afdce57ceffdcbf965e16e7a24c0a9ab6d7d234 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Fix painting of current line in generic and python editorsEike Ziller2018-08-242-1/+2
| | | | | | | | | | | | | | | | | The generic highlighter and the python editor explicitly map some tokens to the format C_TEXT. Unfortunately this format is special, because it's foreground and background colors are handled by setting the editor's palette, and should not be used for setting the format on characters. If the format is explicitly set on characters, their background will be oblique and overpaint e.g. the highlight for the current line, which looks pretty ugly. Handle this directly in SyntaxHighlighter::formatForCategory for all syntax highlighters, by returning an empty QTextCharFormat for C_TEXT. Change-Id: Ifaeb556754ca8106ad6e55d7062b13b45457a809 Reviewed-by: David Schulz <david.schulz@qt.io>
* Squish: Remove remaining mentions of Squish hookingRobert Loehning2018-08-231-2/+1
| | | | | Change-Id: If4fde6d47433b1c8e46c68c5b225004446214797 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Squish: Update URLs to sources of Qt 4.8.7Robert Loehning2018-08-221-2/+2
| | | | | Change-Id: I9dfc2df788be128ee82561d1974920c5924566e9 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Squish: Use sets instead of lists for kits in useRobert Loehning2018-08-174-39/+31
| | | | | | | | They fit our use-case much better. Task-number: QTCREATORBUG-20874 Change-Id: Ifa06ce00f3e6999a99c3bc2bb7e9ba759fa02e94 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Tests: Add #include <QtGlobal> for version checksOrgad Shaneh2018-08-163-0/+4
| | | | | | | It is required with Qt 5.11. Change-Id: Ie6aee4a5d71a370952f908561a40ccc2d34d31c5 Reviewed-by: hjk <hjk@qt.io>
* Dumper: Fix enum display in nested typesOrgad Shaneh2018-08-161-1/+3
| | | | | | | | When used in SubItem, enums were displayed as "value of type E at address <addr>". Change-Id: Ieecfb791126c6f63f272817afc6c8d05f28b9242 Reviewed-by: David Schulz <david.schulz@qt.io>
* Squish: Update Creator's sources to v4.7.0Robert Loehning2018-08-144-1908/+7554
| | | | | | Task-number: QTCREATORBUG-20344 Change-Id: I7664f2f1b9f9412b9564f192319f9ed832dc142a Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Squish: Fix passing argument to helper functionChristian Stenger2018-08-101-2/+2
| | | | | | | | | | | | | | | The code of the helper function has changed and what worked before by pure coincidence now fell apart. Passing a list to a function that tries to use it as a key for a dict results in an exception as lists are not hashable. The code is likely to change by adding a newer kit. This patch just makes the current state work without crashing instead of adding functionality that is not yet used. Amends aed1616b351e909b870e5caccd544b66b16000bf. Change-Id: I6e8a6490988700de14596ba981b5e6900133a79d Reviewed-by: Robert Loehning <robert.loehning@qt.io>
* Squish: Remove old default target parametersRobert Loehning2018-08-103-28/+12
| | | | | Change-Id: I72153c535ae0670cb4bfa061f34659bc7faee001 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Squish: Fix checking for Profile modeRobert Loehning2018-08-091-1/+2
| | | | | | | Amends 2a274728c2d1. Change-Id: Id686e031658ad737eaeeffabe857452cc8a0d7ac Reviewed-by: Robert Loehning <robert.loehning@qt.io>
* Squish: Simplify mapping between kits and their namesRobert Loehning2018-08-091-25/+11
| | | | | | Task-number: QTCREATORBUG-20861 Change-Id: I809036dc331b93f015ee5b10381229b106e27cbd Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Squish: Also check for "Profile" config being checkedRobert Loehning2018-08-071-0/+1
| | | | | Change-Id: I9f6598144b81240c4a92abb7e71b7c4cbf6baa4a Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Squish: Move imports of "os", "re" and "sys" into shared classRobert Loehning2018-08-0710-17/+1
| | | | | Change-Id: I349cb255b8fa6f96e32d5dacb3c9b58ddeb76897 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Squish: Fix warningsRobert Loehning2018-08-0627-44/+33
| | | | | | | Warnings from static code checks, that is, not test.warning() at runtime. Change-Id: I651d13491106583908059ecdb5f700f539b6d9c8 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Squish: Don't explicitly pass default to createNewQtQuickApplicationRobert Loehning2018-08-022-6/+2
| | | | | Change-Id: I006c6cad0e972006475ad488b9a71def09de0dbb Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Squish: Refactor selecting configured Kits in projectRobert Loehning2018-08-0221-223/+149
| | | | | | | | | | | | | The design of the Projects mode changed several times. We wrote lots of workarounds to keep even more old code alive because we never had the time for a proper refactoring. This time is now. Leads to more stable code with far less variables flying around. Task-number: QTCREATORBUG-20265 Change-Id: I29e5956ea3279cdb1d6da61bf5b461666de436bc Reviewed-by: Robert Loehning <robert.loehning@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Squish: Redo readFile()Christian Stenger2018-08-011-4/+2
| | | | | | Change-Id: Ife8f951aa8fc86403197318b55db725ed3259336 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Robert Loehning <robert.loehning@qt.io>
* Squish: Test pasting with pastebin.comRobert Loehning2018-07-311-3/+15
| | | | | | | | | Yes, there are only ten pastes per IP per day. But doesn't that mean that nobody can rely on it being availabe anyway? So it's better to use some of those ten pastes for testing instead of not testing pasting at all. Change-Id: I45362e5ab0c3eb43f1ddd18d4be39474e26c8460 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Squish: Use sections for services in tst_codepastingRobert Loehning2018-07-311-36/+37
| | | | | Change-Id: If97331e3a18f44ca82ad81c7609dc3162caf5254 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Squish: Fix handling of server issues in tst_codepastingRobert Loehning2018-07-301-19/+19
| | | | | Change-Id: I35d8dbeb11be104a1af2956125a29c4606c7e050 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Squish: Fix tests after revertChristian Stenger2018-07-271-4/+8
| | | | | | | | | The patch that removed Qt4 completely from the widget app wizard has been reverted. Adjusting the tests now. Change-Id: I0af1eb2102caa22022658d1189794c7757c7628f Reviewed-by: Robert Loehning <robert.loehning@qt.io>
* Squish: Forward qbs' warnings about deprecated featuresRobert Loehning2018-07-262-4/+11
| | | | | Change-Id: Ib99713b95d010acf4b49065ad7e20862e59476d1 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Squish: Remove unneeded function callRobert Loehning2018-07-121-1/+0
| | | | | Change-Id: I3fb85bc69086501dada922b45ef353e34030e0db Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Squish: Remove unused variablesRobert Loehning2018-07-121-2/+2
| | | | | Change-Id: I24d8ecbe7e7208a20d0f27f62d5b8f488d2a240a Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Squish: Update suite_WELPRobert Loehning2018-07-115-14/+15
| | | | | | | This is a follow-up to 744279. Change-Id: I24485972b3a292952c653f2cfab1af198578fcc4 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Squish: Update tst_CSUP01Robert Loehning2018-07-091-5/+7
| | | | | | | The built-in code model also proposes "void_t". Change-Id: I2462e47d5b1a69065f998244fc8372011e37a0c8 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Squish: Give code model more time to list refactoringsRobert Loehning2018-07-091-1/+1
| | | | | Change-Id: I944dfa306954cd16fdb24334db6e869702da282f Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Tests: Add lines for testing editing and output of intRobert Loehning2018-07-031-0/+2
| | | | | Change-Id: If31b5957fa55f5dd31205a0b4495491314fa87c0 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Squish: Fix for Qt 5.11Robert Loehning2018-07-021-1/+1
| | | | | | | | The items in the treeView look slightly different than with Qt 5.10 and thus seem to lose the mouseclicks. Change-Id: Ibee1abdbc9e9bfe622b45f76ed5e612e81fd1770 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Squish: Fix expected targets for widget app wizardChristian Stenger2018-06-291-3/+1
| | | | | | | | Reverts cd45ce5f391c. Change-Id: I6865e6c91fd961ac36da160a01c676f5274c40cc Reviewed-by: Robert Loehning <robert.loehning@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Squish: Handle more server side issuesChristian Stenger2018-06-291-3/+28
| | | | | | | | | If we get correct http responses that point to server side issues handle them appropriate if possible to let the test continue instead of crash. Change-Id: I7d2e8848269600762e9c7fe980414c4f7106433c Reviewed-by: Robert Loehning <robert.loehning@qt.io>
* Squish: Remove Qt4 from expected kits for widget application wizardChristian Stenger2018-06-261-0/+2
| | | | | Change-Id: I747b47a5adb684f9ef3c245427707ead9ffba20a Reviewed-by: Robert Loehning <robert.loehning@qt.io>
* Squish: Add VS2017 as expected compiler on WindowsChristian Stenger2018-06-261-0/+1
| | | | | Change-Id: If68d6a143f4c1f9b96fe7c561977ab481a31ecb4 Reviewed-by: Robert Loehning <robert.loehning@qt.io>
* Squish: Fix expected stringChristian Stenger2018-06-221-1/+1
| | | | | | | Capitalization has changed. Change-Id: Icbfa295beab27c1cfb2ec1ae6198784f134563a6 Reviewed-by: Robert Loehning <robert.loehning@qt.io>
* Squish: Remove workaround for fixed bugRobert Loehning2018-06-191-3/+2
| | | | | | Task-number: QTCREATORBUG-20057 Change-Id: Id308fed4ec83c7aa89b822f00174a1e9ed2a0764 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Tracing: Handle mouse events in FlameGraph QQuickItemUlf Hermann2018-06-186-0/+270
| | | | | | | | | | | | Having an additional MouseArea as child of a ScrollView or a Flickable is not well defined and leads to inconsistent behavior on different systems. We can easily catch the relevant events in the FlameGraph item itself. Also, don't redirect the typeSelected() signals through the model. They don't belong there. Change-Id: I77c17977b5a51d57ccd2ef880d3d6c6a604b7f78 Task-number: QTCREATORBUG-20573 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Clang: Use built-in follow symbol for virtual methodsIvan Donchevskii2018-06-151-1/+1
| | | | | | | | | | ClangCodeModel currently does not provide a list of overrides. Therefore it makes sense to use ClangCodeModel result for virtual method only if built-in code model does not find anything. Task-number: QTCREATORBUG-20584 Change-Id: I5b4fac7974f990e741d3438ab61827670a8ce8d8 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* UnitTest: Fix buildOrgad Shaneh2018-06-121-0/+38
| | | | | | | This amends commit c62daf9cda6a36d5434dfbcd6ca3dbb3537a935b. Change-Id: Ia1d574f788f97a3d0bb3a7c6724659c2875e2c81 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Clang: Fix processing documents if multiple are opened at onceNikolai Kosjar2018-06-081-0/+15
| | | | | | | | | | | | | | | | | | | Reproducable with 1. $ ./qtcreator a.cpp b.cpp 2. Switch to a.cpp => no highlighting Because ClangEditorDocumentProcessor does asynchronous processing, the backend might receive a DocumentsOpenedMessage where the document is not the current editor (happens for a.cpp in the example). When switching to that document, the initial jobs were not processed as the document was not dirty. Address this case by also checking for documents that have a revision of 1 and are not dirty. Unify adding the annotations jobs to ensure that not more than needed are run. Change-Id: I14030260842f97d58280235e763c8d7490705f8d Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
* Squish: Update object for tst_HELP05Robert Loehning2018-06-081-2/+1
| | | | | Change-Id: I0a38ed35061000591b8078ef534c2996809aeb58 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Squish: Use built-in code model in tst_APTW01Robert Loehning2018-06-051-1/+3
| | | | | | | The warnings from ClangCodeModel confuse our build check. Change-Id: Ic6b82bb304387f447bdf8eb0b2fd02dd2f250fb2 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Squish: Explicitly disable ClangCodeModel for testing built-inRobert Loehning2018-06-051-1/+1
| | | | | | | The ClangCodeModel is the default now. Change-Id: Id432cc9d27dcf7327c0b7efeba7004521d25fee5 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Squish: Update tst_simple_analyzeRobert Loehning2018-06-043-5/+5
| | | | | Change-Id: I2cbe39a225760f53d70487e105e2b45fd4e16d33 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Squish: Handle third kit stateRobert Loehning2018-06-041-3/+6
| | | | | Change-Id: I3442cf7676b7f316a60344b9c7dfc2d777529785 Reviewed-by: Christian Stenger <christian.stenger@qt.io>