diff options
Diffstat (limited to 'tests/auto/qscxmlc')
-rw-r--r-- | tests/auto/qscxmlc/data/commentInScript.scxml | 19 | ||||
-rw-r--r-- | tests/auto/qscxmlc/tst_qscxmlc.qrc | 1 |
2 files changed, 20 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> diff --git a/tests/auto/qscxmlc/tst_qscxmlc.qrc b/tests/auto/qscxmlc/tst_qscxmlc.qrc index d6b8a6a..a86c786 100644 --- a/tests/auto/qscxmlc/tst_qscxmlc.qrc +++ b/tests/auto/qscxmlc/tst_qscxmlc.qrc @@ -1,5 +1,6 @@ <RCC> <qresource prefix="/tst_qscxmlc"> + <file>data/commentInScript.scxml</file> <file>data/empty.scxml</file> <file>data/misplacedinvoke.scxml</file> <file>data/invalidRoot.scxml</file> |