diff options
Diffstat (limited to 'test/scxml-test-framework/test-ext')
10 files changed, 0 insertions, 86 deletions
diff --git a/test/scxml-test-framework/test-ext/node/require/require.json b/test/scxml-test-framework/test-ext/node/require/require.json deleted file mode 100644 index 1d2faec..0000000 --- a/test/scxml-test-framework/test-ext/node/require/require.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "initialConfiguration" : ["a"], - "events" : [ - { - "event" : { "name" : "t" }, - "nextConfiguration" : ["b"] - } - ] -} - - - diff --git a/test/scxml-test-framework/test-ext/node/require/require.scxml b/test/scxml-test-framework/test-ext/node/require/require.scxml deleted file mode 100644 index 221ad81..0000000 --- a/test/scxml-test-framework/test-ext/node/require/require.scxml +++ /dev/null @@ -1,56 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Copyright 2011-2012 Jacob Beard, INFICON, and other SCION contributors - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> -<scxml - xmlns="http://www.w3.org/2005/07/scxml" - version="1.0" - profile="ecmascript" - id="root"> - - <datamodel> - <data id="util"/> - <data id="submodule1"/> - <data id="submodule2"/> - <data id="submodule3"/> - <data id="submodule4"/> - </datamodel> - - <script> - util = require('util'); //require built-in module - console.log('hello'); - submodule1 = require('./submodule1'); - </script> - - <script src="script2.js"/> - - <state id="a"> - <onentry> - <script> - submodule3 = require('./submodule3'); - </script> - <script src="script4.js"/> - <log label="util" expr="util"/> - <log label="submodules" expr="[submodule1, submodule2, submodule3, submodule4]"/> - </onentry> - - <transition event="t" target="b" cond="util && submodule1 && submodule2 && submodule3 && submodule4"/> - <transition event="t" target="f"/> - </state> - - <state id="b"/> - <state id="f"/> - -</scxml> diff --git a/test/scxml-test-framework/test-ext/node/require/script2.js b/test/scxml-test-framework/test-ext/node/require/script2.js deleted file mode 100644 index 25259e7..0000000 --- a/test/scxml-test-framework/test-ext/node/require/script2.js +++ /dev/null @@ -1 +0,0 @@ -submodule2 = require('./submodule2'); diff --git a/test/scxml-test-framework/test-ext/node/require/script3.js b/test/scxml-test-framework/test-ext/node/require/script3.js deleted file mode 100644 index 76a37e1..0000000 --- a/test/scxml-test-framework/test-ext/node/require/script3.js +++ /dev/null @@ -1 +0,0 @@ -submodule3 = require('./submodule3'); diff --git a/test/scxml-test-framework/test-ext/node/require/script4.js b/test/scxml-test-framework/test-ext/node/require/script4.js deleted file mode 100644 index 348b8c9..0000000 --- a/test/scxml-test-framework/test-ext/node/require/script4.js +++ /dev/null @@ -1 +0,0 @@ -submodule4 = require('./submodule4'); diff --git a/test/scxml-test-framework/test-ext/node/require/submodule1.js b/test/scxml-test-framework/test-ext/node/require/submodule1.js deleted file mode 100644 index bd816ea..0000000 --- a/test/scxml-test-framework/test-ext/node/require/submodule1.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = 1; diff --git a/test/scxml-test-framework/test-ext/node/require/submodule2.js b/test/scxml-test-framework/test-ext/node/require/submodule2.js deleted file mode 100644 index 4bbffde..0000000 --- a/test/scxml-test-framework/test-ext/node/require/submodule2.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = 2; diff --git a/test/scxml-test-framework/test-ext/node/require/submodule3.js b/test/scxml-test-framework/test-ext/node/require/submodule3.js deleted file mode 100644 index 690aad3..0000000 --- a/test/scxml-test-framework/test-ext/node/require/submodule3.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = 3; diff --git a/test/scxml-test-framework/test-ext/node/require/submodule4.js b/test/scxml-test-framework/test-ext/node/require/submodule4.js deleted file mode 100644 index a9bbdd8..0000000 --- a/test/scxml-test-framework/test-ext/node/require/submodule4.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = 4; diff --git a/test/scxml-test-framework/test-ext/node/runner.js b/test/scxml-test-framework/test-ext/node/runner.js deleted file mode 100644 index da68716..0000000 --- a/test/scxml-test-framework/test-ext/node/runner.js +++ /dev/null @@ -1,11 +0,0 @@ -var scion = require('scion'); - -scion.pathToModel('require/require.scxml',function(err,model){ - if(err) throw err; - - var scxml = new scion.SCXML(model); - var initialConfig = scxml.start(); - console.log("initialConfig",initialConfig); - var nextConfig = scxml.gen("t"); - console.log("nextConfig",nextConfig); -}); |