diff options
author | Stefan Radomski <github@mintwerk.de> | 2017-05-29 13:45:06 (GMT) |
---|---|---|
committer | Stefan Radomski <github@mintwerk.de> | 2017-05-29 13:45:06 (GMT) |
commit | 91c81948221cac182e6f64a939983af2bb7a91b0 (patch) | |
tree | 81458a9db1f4664df4896ee8fc4a6d74ba8551c7 /test | |
parent | 4799b35d2457f1cfc746701ea347c89ae9887ca9 (diff) | |
download | uscxml-91c81948221cac182e6f64a939983af2bb7a91b0.zip uscxml-91c81948221cac182e6f64a939983af2bb7a91b0.tar.gz uscxml-91c81948221cac182e6f64a939983af2bb7a91b0.tar.bz2 |
Fixed issue 141
Diffstat (limited to 'test')
-rw-r--r-- | test/src/test-validating.cpp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/test/src/test-validating.cpp b/test/src/test-validating.cpp index e69c07d..ae2a2f5 100644 --- a/test/src/test-validating.cpp +++ b/test/src/test-validating.cpp @@ -351,6 +351,22 @@ bool attributeConstraints() { } { + // source with src and child content, not allowed + const char* xml = + "<scxml>" + " <state id=\"start\">" + " <onentry>" + " <script src=\"test-validating\"/>" + " </onentry>" + " </state>" + "</scxml>"; + + std::set<std::string> issueLocations = issueLocationsForXML(xml); + assert(issueLocations.size() == 0); + } + + + { // invoke with namelist and param, not allowed const char* xml = "<scxml>" @@ -868,7 +884,7 @@ bool syntaxErrors() { int main(int argc, char** argv) { factory = Factory::getInstance(); - return EXIT_SUCCESS; +// return EXIT_SUCCESS; try { using namespace XERCESC_NS; |