diff options
author | Stefan Radomski <github@mintwerk.de> | 2017-01-30 23:12:06 (GMT) |
---|---|---|
committer | Stefan Radomski <github@mintwerk.de> | 2017-01-30 23:12:06 (GMT) |
commit | f678b755216a7ea21acec0c8e51a6698719ef776 (patch) | |
tree | 68b9c762d2da279860387d4d4619fda098da980c /test | |
parent | 7659ef059fa31c780f7c4e0fb028b9fb5b400030 (diff) | |
download | uscxml-f678b755216a7ea21acec0c8e51a6698719ef776.zip uscxml-f678b755216a7ea21acec0c8e51a6698719ef776.tar.gz uscxml-f678b755216a7ea21acec0c8e51a6698719ef776.tar.bz2 |
Introduced constants for XML names
Diffstat (limited to 'test')
-rwxr-xr-x | test/src/test-http-debugger.pl | 2 | ||||
-rw-r--r-- | test/src/test-utils.cpp | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/test/src/test-http-debugger.pl b/test/src/test-http-debugger.pl index fcc675f..a43478c 100755 --- a/test/src/test-http-debugger.pl +++ b/test/src/test-http-debugger.pl @@ -26,7 +26,7 @@ my @breakpointSeq; my $pid = fork; if (!$pid) { - exec("$scxmlBin -t4088 -d"); + # exec("$scxmlBin -t4088 -d"); exit; } diff --git a/test/src/test-utils.cpp b/test/src/test-utils.cpp index 7436015..30caf46 100644 --- a/test/src/test-utils.cpp +++ b/test/src/test-utils.cpp @@ -45,9 +45,9 @@ void testDOMUtils() { DOMUtils::filterElementGeneric({ "state" }, result, scxml, DOMUtils::POSTFIX, true, true); index = 1; for (auto trans : result) { - assert(HAS_ATTR(trans, "post")); - std::cout << "post: " << ATTR(trans, "post") << std::endl; - assert(ATTR(trans, "post") == toStr(index)); + assert(HAS_ATTR(trans, X("post"))); + std::cout << "post: " << ATTR(trans, X("post")) << std::endl; + assert(ATTR(trans, X("post")) == toStr(index)); index++; } } @@ -58,9 +58,9 @@ void testDOMUtils() { DOMUtils::filterElementGeneric({ "state" }, result, scxml, DOMUtils::DOCUMENT, true, true); index = 1; for (auto trans : result) { - assert(HAS_ATTR(trans, "doc")); - std::cout << "doc: " << ATTR(trans, "doc") << std::endl; - assert(ATTR(trans, "doc") == toStr(index)); + assert(HAS_ATTR(trans, X("doc"))); + std::cout << "doc: " << ATTR(trans, X("doc")) << std::endl; + assert(ATTR(trans, X("doc")) == toStr(index)); index++; } } |