summaryrefslogtreecommitdiffstats
path: root/tests/auto/parser
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'origin/5.9' into 5.10Liang Qi2017-11-151-0/+3
|\ | | | | | | Change-Id: Id4d40ec35ed8f13c7704d737312205f334139129
| * Output a better warning when runtime-loading malformed SCXMLUlf Hermann2017-11-101-0/+3
| | | | | | | | | | | | | | | | The document might technically have a root element. We might not be able to read it, though. Also, output all errors without quotes. Change-Id: I8133e322e452ea0c3d079b5cbe23aed2f2952b3e Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
* | Pre-declare some meta types in the headersUlf Hermann2017-08-171-2/+0
|/ | | | | | | | | It doesn't make much sense to declare the meta type for QScxmlError in all the tests. Also, types exposed through Q_PROPERTY should be declared. Change-Id: Ibb08440e1f40845ea779e1c2a3882bc1b1e0a935 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Rename QScxmlParser to QScxmlCompilerUlf Hermann2016-10-141-1/+1
| | | | | | | | | It creates an executable representation from an XML description, so it is a compiler and not merely a parser. The name should reflect this. Change-Id: I459445706207b3afae64b3f803c9beae83114bb6 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
* Replace Q_FOREACH/foreach with ranged-forErik Verbruggen2016-09-251-2/+3
| | | | | Change-Id: I7b4d13a49577a7d984727722ff2ae4458eab2d6e Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Get rid of qt modeJarek Kobus2016-08-237-65/+3
| | | | | Change-Id: Id8cc29a9a27f571f063b1cec51e534a3c762f2c6 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* In Qt mode reject documents with events that cannot be mapped to slotsUlf Hermann2016-08-181-0/+2
| | | | | | | | | | | This severely limits the use of Qt mode, as hierarchical events like done.state.foo cannot appear in the document anymore. However, it makes the rules about what is and what is not legal in Qt mode more consistent. Task-number: QTBUG-53435 Change-Id: I08b90f34c651a57d86607eea2a38f5bd1f73b8b3 Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
* Fix test after change in qtbaseErik Verbruggen2016-08-031-1/+1
| | | | | | | | | | | | After d4302ec6936b8b3799a266b640b5d116b3296b29, the QXmlStreamReader will reject more invalid characters for an NMToken. So, instead of the SCXML parser giving an error, the stream reader will give an error. This changes checks for that error. Task-number: QTBUG-55106 Change-Id: Ie8d43b040f0bbe16894ed6ad88157cae2a04fb7e Reviewed-by: Liang Qi <liang.qi@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Auto-include qscxmlc in module configUlf Hermann2016-07-151-2/+0
| | | | | | | | This enables us to drop all the load(qscxmlc) declarations in the various .pro files. Change-Id: I37e0ddba76be1c4c79dea1302634f62a22032ee2 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Change verification to run if no parse errors are found.Erik Verbruggen2016-06-078-12/+0
| | | | | | | | | | | Recovery from parse errors in XML is often done by ignoring the erroneous tag and its contents. This means that whole sub-trees are not "loaded", which obviously leeds to verification errors. However, because there was 1 parse error causing them, there is no need to give even more error messages that all stem from the same problem. Change-Id: I359e26f6d71b08590232b342b79e6a95d689bdd1 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Simplify qscxmlc test scxml and merge it into parser testUlf Hermann2016-06-0276-85/+588
| | | | | | Change-Id: If51691cff11d9594385fc2642d1ba361758dcf9a Task-number: QTBUG-53118 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Move scxml files into data subfolder, add more testsJarek Kobus2016-05-2010-12/+97
| | | | | Change-Id: I56bcc107c6df43ccc91822cd77b753190125e906 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Detect clashes in event and state namesJarek Kobus2016-04-143-22/+105
| | | | | Change-Id: I6df9f73965442b7866c8912ac8a0a0858640bb62 Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>
* Validate IDs and event names, and handle them well in C++ generation.Erik Verbruggen2016-04-136-3/+154
| | | | | | Change-Id: I2e4e15496e7b2adc2f452745b1341f8fa0140b12 Task-number: QTBUG-51818 Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
* Update license headersJarek Kobus2016-01-263-18/+74
| | | | | Change-Id: If100cc6cfeccc9ec4f13e03d69edfb7fad6bc2f6 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Even more documentation.Erik Verbruggen2015-12-011-1/+1
| | | | | Change-Id: Iac3a36a61b883ef9fa80a9b37fdc53a73f2b0e27 Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
* Build fixes.Erik Verbruggen2015-11-181-1/+3
| | | | | Change-Id: I9f7cf3f50a1ddf787e42c71aada8f6866df573b1 Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
* Fix logging.Erik Verbruggen2015-11-041-1/+1
| | | | | Change-Id: Iae6d7f93b9f257e2c2cd56b2cdd4d13447ce9a8e Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
* Fix leaks.Erik Verbruggen2015-10-081-1/+2
| | | | | | Change-Id: Iab7b8e9911601e2384fd6bf8f636facf2fb7aa49 Reviewed-by: Jaroslaw Kobus <jaroslaw.kobus@theqtcompany.com> Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
* More build fixes.Erik Verbruggen2015-09-211-2/+2
| | | | | Change-Id: I4f14c83c8877d337a0452fbca81c329624106ce7 Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
* Nuked the Scxml namespace.Erik Verbruggen2015-09-171-4/+2
| | | | | | | We're now just like Qt. Change-Id: I34a20b19436e0a8626436e9727cadb865f124517 Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
* Renamed StateMachine to QScxmlStateMachine.Erik Verbruggen2015-09-171-1/+1
| | | | | Change-Id: I73c6ff52478383c3c3870e0a889194444c956a4b Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
* Renamed TableData to QScxmlTableData and ScxmlError to QScxmlError.Erik Verbruggen2015-09-171-9/+9
| | | | | Change-Id: I47fce45d787402f615ae200ef60f9226e367e448 Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
* Ignore tags in unknown namespaces.Erik Verbruggen2015-09-033-3/+21
| | | | | Change-Id: I4b48ccb7bb0cacdb53e845e4316e016b182a0164 Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
* Add parser auto testJarek Kobus2015-09-034-0/+111
Currently it's checking if the proper error is issued when transition contains illegal target. Change-Id: I6f505c6d21037a450188af061ec9b9778b548ec1 Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>