summaryrefslogtreecommitdiffstats
path: root/test/src
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-12-05 16:20:11 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-12-05 16:20:11 (GMT)
commit93f8cb376e6e496f0194d1e0657081354434da96 (patch)
tree551d4b37708cb983b73432029f370b605d76da29 /test/src
parenta5a139f46438148901ea6627b73d1bf6ae39b346 (diff)
downloaduscxml-93f8cb376e6e496f0194d1e0657081354434da96.zip
uscxml-93f8cb376e6e496f0194d1e0657081354434da96.tar.gz
uscxml-93f8cb376e6e496f0194d1e0657081354434da96.tar.bz2
Support for xinclude
Diffstat (limited to 'test/src')
-rw-r--r--test/src/test-datamodel.cpp4
-rw-r--r--test/src/test-issue-reporting.cpp4
-rw-r--r--test/src/test-lifecycle.cpp12
-rw-r--r--test/src/test-predicates.cpp2
4 files changed, 11 insertions, 11 deletions
diff --git a/test/src/test-datamodel.cpp b/test/src/test-datamodel.cpp
index f0b7536..4b93b4d 100644
--- a/test/src/test-datamodel.cpp
+++ b/test/src/test-datamodel.cpp
@@ -52,7 +52,7 @@ int main(int argc, char** argv) {
}
- Interpreter interpreter = Interpreter::fromXML("<scxml></scxml>");
+ Interpreter interpreter = Interpreter::fromXML("<scxml></scxml>", "");
DataModel dm(Factory::getInstance()->createDataModel("ecmascript", interpreter.getImpl().get()));
dm.evalAsString("var foo = 12");
@@ -513,7 +513,7 @@ int main(int argc, char** argv) {
"</scxml>";
TestDataModelExtension ext;
- Interpreter interpreter = Interpreter::fromXML(xml);
+ Interpreter interpreter = Interpreter::fromXML(xml, "");
interpreter.addDataModelExtension(&ext);
InterpreterState state;
diff --git a/test/src/test-issue-reporting.cpp b/test/src/test-issue-reporting.cpp
index 39dad05..98c2a21 100644
--- a/test/src/test-issue-reporting.cpp
+++ b/test/src/test-issue-reporting.cpp
@@ -5,7 +5,7 @@
using namespace uscxml;
std::set<std::string> issueLocationsForXML(const std::string xml) {
- Interpreter interpreter = Interpreter::fromXML(xml);
+ Interpreter interpreter = Interpreter::fromXML(xml, "");
std::list<InterpreterIssue> issues = interpreter.validate();
std::set<std::string> issueLocations;
@@ -52,7 +52,7 @@ int main(int argc, char** argv) {
"</scxml>";
IssueMonitor monitor;
- Interpreter interpreter = Interpreter::fromXML(xml);
+ Interpreter interpreter = Interpreter::fromXML(xml, "");
interpreter.addMonitor(&monitor);
interpreter.interpret();
diff --git a/test/src/test-lifecycle.cpp b/test/src/test-lifecycle.cpp
index 8ecad37..ff2fafd 100644
--- a/test/src/test-lifecycle.cpp
+++ b/test/src/test-lifecycle.cpp
@@ -217,7 +217,7 @@ int main(int argc, char** argv) {
// syntactic xml parse error
try {
const char* xml = "<invalid";
- Interpreter interpreter = Interpreter::fromXML(xml);
+ Interpreter interpreter = Interpreter::fromXML(xml, "");
assert(false);
} catch (Event& e) {
std::cout << e;
@@ -228,7 +228,7 @@ int main(int argc, char** argv) {
// semantic xml parse error
try {
const char* xml = "<invalid />";
- Interpreter interpreter = Interpreter::fromXML(xml);
+ Interpreter interpreter = Interpreter::fromXML(xml, "");
interpreter.addMonitor(mon);
assert(interpreter.getState() == USCXML_INSTANTIATED);
interpreter.step();
@@ -248,7 +248,7 @@ int main(int argc, char** argv) {
" </state>"
" <final id=\"done\" />"
"</scxml>";
- Interpreter interpreter = Interpreter::fromXML(xml);
+ Interpreter interpreter = Interpreter::fromXML(xml, "");
interpreter.addMonitor(mon);
assert(interpreter.getState() == USCXML_INSTANTIATED);
interpreter.step();
@@ -271,7 +271,7 @@ int main(int argc, char** argv) {
" <final id=\"done\" />"
"</scxml>";
- Interpreter interpreter = Interpreter::fromXML(xml);
+ Interpreter interpreter = Interpreter::fromXML(xml, "");
interpreter.addMonitor(mon);
callBackSeq.push_back(USCXML_BEFOREENTERINGSTATE);
@@ -315,7 +315,7 @@ int main(int argc, char** argv) {
" <final id=\"done\" />"
"</scxml>";
- Interpreter interpreter = Interpreter::fromXML(xml);
+ Interpreter interpreter = Interpreter::fromXML(xml, "");
interpreter.addMonitor(mon);
callBackSeq.push_back(USCXML_BEFOREENTERINGSTATE);
@@ -374,7 +374,7 @@ int main(int argc, char** argv) {
" <final id=\"done\" />"
"</scxml>";
- Interpreter interpreter = Interpreter::fromXML(xml);
+ Interpreter interpreter = Interpreter::fromXML(xml, "");
interpreter.addMonitor(mon);
callBackSeq.push_back(USCXML_BEFOREENTERINGSTATE);
diff --git a/test/src/test-predicates.cpp b/test/src/test-predicates.cpp
index 02e0faf..f66e8ba 100644
--- a/test/src/test-predicates.cpp
+++ b/test/src/test-predicates.cpp
@@ -20,7 +20,7 @@ int main(int argc, char** argv) {
" </parallel>"
"</scxml>";
- Interpreter interpreter = Interpreter::fromXML(xml);
+ Interpreter interpreter = Interpreter::fromXML(xml, "");
assert(interpreter);
interpreter.getImpl()->init();