diff options
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; |