summaryrefslogtreecommitdiffstats
path: root/test/src/test-validating.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/src/test-validating.cpp')
-rw-r--r--test/src/test-validating.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/src/test-validating.cpp b/test/src/test-validating.cpp
index a0fd6dd..19897a1 100644
--- a/test/src/test-validating.cpp
+++ b/test/src/test-validating.cpp
@@ -356,13 +356,16 @@ bool attributeConstraints() {
"<scxml>"
" <state id=\"start\">"
" <onentry>"
- " <script src=\"test-validating\"/>"
+ " <script src=\"https://raw.githubusercontent.com/tklab-tud/uscxml/master/test/w3c/null/test436.scxml\">"
+ " foo"
+ " </script>"
" </onentry>"
" </state>"
"</scxml>";
std::set<std::string> issueLocations = issueLocationsForXML(xml);
- assert(issueLocations.size() == 0);
+ assert(issueLocations.find("//state[@id=\"start\"]/onentry[1]/script[1]") != issueLocations.end());
+ assert(issueLocations.size() == 1);
}