diff options
Diffstat (limited to 'test/src/test-ecmascript-v8.cpp.old')
-rw-r--r-- | test/src/test-ecmascript-v8.cpp.old | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/src/test-ecmascript-v8.cpp.old b/test/src/test-ecmascript-v8.cpp.old new file mode 100644 index 0000000..9ce39d9 --- /dev/null +++ b/test/src/test-ecmascript-v8.cpp.old @@ -0,0 +1,24 @@ +#include "uscxml/Interpreter.h" +#include "uscxml/plugins/datamodel/ecmascript/v8/V8DataModel.h" + +int main(int argc, char** argv) { + if (argc != 2) { + std::cerr << "Expected path to test-ecmascript.scxml" << std::endl; + exit(EXIT_FAILURE); + } + + using namespace uscxml; + using namespace Arabica::DOM; + using namespace Arabica::XPath; + + Interpreter* scxml = Interpreter::fromURI(argv[1]); + scxml->start(); + scxml->waitForStabilization(); + + Event event1; + event1.name = "event1"; + scxml->receive(event1); + scxml->join(); + tthread::this_thread::sleep_for(tthread::chrono::milliseconds(500)); + +}
\ No newline at end of file |