[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/testsuite/misc-ming.all opcode_guard_test.c
From: |
Zou Lunkai |
Subject: |
[Gnash-commit] gnash/testsuite/misc-ming.all opcode_guard_test.c |
Date: |
Fri, 14 Dec 2007 08:11:29 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Zou Lunkai <zoulunkai> 07/12/14 08:11:29
Modified files:
testsuite/misc-ming.all: opcode_guard_test.c
Log message:
one more test
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/opcode_guard_test.c?cvsroot=gnash&r1=1.5&r2=1.6
Patches:
Index: opcode_guard_test.c
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/opcode_guard_test.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- opcode_guard_test.c 14 Dec 2007 08:00:06 -0000 1.5
+++ opcode_guard_test.c 14 Dec 2007 08:11:29 -0000 1.6
@@ -135,6 +135,7 @@
add_actions(mo,
+ "orignal_target_var = 100;"
"setTarget('non-exist-target');"
"current_target = 0;"
"asm{ "
@@ -152,11 +153,14 @@
" gotoAndPlay(10);"
// the above gotoFrame has no effect as it was acting on an
non-exist-target
" _root.xcheck_equals(_root._currentframe, 9);"
+ // ascend to the orignal target is the current target is undefined
+ // we succeed by luck.
+ " _root.check_equals(orignal_target_var, 100);"
"setTarget('');");
SWFMovie_nextFrame(mo); // 9th frame
- add_actions(mo, "xtotals(10); stop();");
+ add_actions(mo, "xtotals(11); stop();");
SWFMovie_nextFrame(mo); // 10th frame
//Output movie