浏览代码

small change in disassociate test to see whether old links still work

Simon Van Mierlo 8 年之前
父节点
当前提交
cca6c6c211
共有 1 个文件被更改,包括 11 次插入1 次删除
  1. 11 1
      test/src/original_semantics/disassociate_event.xml

+ 11 - 1
test/src/original_semantics/disassociate_event.xml

@@ -51,13 +51,20 @@
             </state>
             
             <state id="waiting_for_disassociate">
-                <transition event="instance_disassociated" target="../done">
+                <transition event="instance_disassociated" target="../sending_hello">
                     <raise port="test_output" event="instance_disassociated"/>
                     <!-- This should no longer work. -->
                     <raise scope="narrow" target="'test3_association'" event="hello" />
                 </transition>
             </state>
             
+            <state id="sending_hello">
+                <transition target="../done">
+                    <!-- This should still work. -->
+                    <raise scope="narrow" target="'test2_association'" event="hello" />
+                </transition>
+            </state>
+            
             <state id="done" />
         </scxml>
     </class>
@@ -91,6 +98,9 @@
            <slot>
                <event name="instance_disassociated" port="test_output"/>
            </slot>
+           <slot>
+               <event name="second_working" port="test_output"/>
+           </slot>
         </expected>
     </test>
 </diagram>