[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog testsuite/misc-swfc.all/opcode_...
From: |
Zou Lunkai |
Subject: |
[Gnash-commit] gnash ChangeLog testsuite/misc-swfc.all/opcode_... |
Date: |
Fri, 12 Oct 2007 01:12:04 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Zou Lunkai <zoulunkai> 07/10/12 01:12:04
Modified files:
. : ChangeLog
testsuite/misc-swfc.all: opcode_guard_test2.sc
Log message:
* testsuite/misc-swfc.all/opcode_guard_test2.sc: test that both
setTarget
and setTargetExpression use the target string instead of pointer for
searching the target. From this point, keep the
as_environment::m_target as a
string type should be safe, does it?
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.4596&r2=1.4597
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-swfc.all/opcode_guard_test2.sc?cvsroot=gnash&r1=1.4&r2=1.5
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.4596
retrieving revision 1.4597
diff -u -b -r1.4596 -r1.4597
--- ChangeLog 11 Oct 2007 21:57:55 -0000 1.4596
+++ ChangeLog 12 Oct 2007 01:12:03 -0000 1.4597
@@ -1,3 +1,9 @@
+2007-10-12 Zou Lunkai <address@hidden>
+
+ * testsuite/misc-swfc.all/opcode_guard_test2.sc: test that both
setTarget
+ and setTargetExpression use the target string instead of pointer for
+ searching the target.
+
2007-10-11 Sandro Santilli <address@hidden>
* testsuite/actionscript.all/with.as: test that locals do NOT take
Index: testsuite/misc-swfc.all/opcode_guard_test2.sc
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-swfc.all/opcode_guard_test2.sc,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- testsuite/misc-swfc.all/opcode_guard_test2.sc 1 Oct 2007 09:07:24
-0000 1.4
+++ testsuite/misc-swfc.all/opcode_guard_test2.sc 12 Oct 2007 01:12:04
-0000 1.5
@@ -114,12 +114,33 @@
.del mc3
+//
+// separate tests for setTargetExpression
+//
+.frame 8
+ .action:
+ mc100Ref = _root.createEmptyMovieClip("mcA", 100);
+ mc100Ref.testvar = 100;
+ mc101Ref = _root.createEmptyMovieClip("mcA", 101);
+ mc101Ref.testvar = 101;
+ _root.check_equals(mc100Ref.testvar, 100);
+ _root.check_equals(mc101Ref.testvar, 101);
+
+ setTarget(mc100Ref);
+ _root.check_equals(testvar, 100);
+ setTarget('');
+
+ setTarget(mc101Ref);
+ _root.check_equals(testvar, 100);
+ setTarget('');
+ .end
+
.frame 10
.action:
stop();
// Gnash failed on totals() by discarding some checks.
- xtotals(8);
+ xtotals(12);
.end
.end // file end