diff options
author | Jarek Kobus <jaroslaw.kobus@theqtcompany.com> | 2016-05-04 16:02:06 +0200 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2016-05-20 11:09:03 +0000 |
commit | 3277abece0c1c258cd2fcbdb3044b9c64b0ccfef (patch) | |
tree | d57c11c39fc10e735fc3d731940b8fc5dafd7ff3 /tests/auto/qscxmlc/data/commentInScript.scxml | |
parent | 6b1884cac1e54b6aa6fd19daf354ee07eeb6379b (diff) |
Refactor parser, parse recursively now
Splits the parsering function into several
smaller functions per element kind.
Fixes parsing of 11 scion tests.
Fixes parsing of non-terminated comment inside <script>
element.
Change-Id: I1d82c3164415a71e69e90bc6d3b96bda67dabb6c
Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Diffstat (limited to 'tests/auto/qscxmlc/data/commentInScript.scxml')
-rw-r--r-- | tests/auto/qscxmlc/data/commentInScript.scxml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/auto/qscxmlc/data/commentInScript.scxml b/tests/auto/qscxmlc/data/commentInScript.scxml new file mode 100644 index 0000000..2af8286 --- /dev/null +++ b/tests/auto/qscxmlc/data/commentInScript.scxml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- enable-qt-mode: yes --> +<scxml + xmlns="http://www.w3.org/2005/07/scxml" + version="1.0" + name="CommentInScript" + datamodel="ecmascript" +> + <datamodel> + <data id="media"/> + </datamodel> + + <script><!-- + function isValidMedia() { + var m = _event.data.media + return (m + "").length > 0 + } + <initial> +</scxml> |