[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/testsuite/misc-swfc.all opcode_guard_test...
From: |
Zou Lunkai |
Subject: |
[Gnash-commit] gnash/testsuite/misc-swfc.all opcode_guard_test... |
Date: |
Thu, 18 Oct 2007 08:11:11 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Zou Lunkai <zoulunkai> 07/10/18 08:11:11
Modified files:
testsuite/misc-swfc.all: opcode_guard_test2.sc
Log message:
one more test for catching the opcode guard.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-swfc.all/opcode_guard_test2.sc?cvsroot=gnash&r1=1.7&r2=1.8
Patches:
Index: opcode_guard_test2.sc
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-swfc.all/opcode_guard_test2.sc,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- opcode_guard_test2.sc 18 Oct 2007 07:34:56 -0000 1.7
+++ opcode_guard_test2.sc 18 Oct 2007 08:11:11 -0000 1.8
@@ -110,11 +110,32 @@
.frame 7
.del mc3
+.frame 8
+ .sprite mc4
+ .end
+ .sprite mc5
+ .action:
+ setTarget('/mc4');
+ _root.gotoAndPlay(9);
+ _root.testvar = true; // should be executed
+ setTarget('');
+ .end
+ .end
+ .put mc4
+ .put mc5
+
+.frame 9
+ .del mc4
+
+.frame 10
+ .action:
+ _root.check_equals(testvar, true);
+ .end
//
// separate tests for setTargetExpression
//
-.frame 8
+.frame 12
.action:
mc100Ref = _root.createEmptyMovieClip("mcA", 100);
mc100Ref.testvar = 100;
@@ -141,12 +162,12 @@
.end
-.frame 10
+.frame 15
.action:
stop();
// Gnash failed on totals() by discarding some checks.
- xtotals(14);
+ xtotals(15);
.end
.end // file end