Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added test for previous feature commit.

  • Loading branch information...
commit d22ba2e43e98d7cc48e6e5363f2472f5425646fa 1 parent 18f2d5e
@jbeard4 authored
View
20 src/test/multiple-events-per-transition/test1.json
@@ -0,0 +1,20 @@
+{
+ "initialConfiguration" : ["a"],
+ "events" : [
+ {
+ "event" : { "name" : "foo" },
+ "nextConfiguration" : ["b"]
+ },
+ {
+ "event" : { "name" : "bar" },
+ "nextConfiguration" : ["c"]
+ },
+ {
+ "event" : { "name" : "bat" },
+ "nextConfiguration" : ["d"]
+ },
+ ]
+}
+
+
+
View
36 src/test/multiple-events-per-transition/test1.scxml
@@ -0,0 +1,36 @@
+<?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">
+
+ <state id="a">
+ <transition target="b" event="foo bar bat"/>
+ </state>
+
+ <state id="b">
+ <transition target="c" event="foo bar bat"/>
+ </state>
+
+ <state id="c">
+ <transition target="d" event="foo bar bat"/>
+ </state>
+
+ <state id="d"/>
+
+</scxml>
Please sign in to comment.
Something went wrong with that request. Please try again.