[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/testsuite/actionscript.all with.as
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash/testsuite/actionscript.all with.as |
Date: |
Fri, 26 Oct 2007 08:47:39 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 07/10/26 08:47:39
Modified files:
testsuite/actionscript.all: with.as
Log message:
another couple of tests for settarget
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/with.as?cvsroot=gnash&r1=1.35&r2=1.36
Patches:
Index: with.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/with.as,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -b -r1.35 -r1.36
--- with.as 26 Oct 2007 08:36:21 -0000 1.35
+++ with.as 26 Oct 2007 08:47:39 -0000 1.36
@@ -21,7 +21,7 @@
// compile this test case with Ming makeswf, and then
// execute it like this gnash -1 -r 0 -v out.swf
-rcsid="$Id: with.as,v 1.35 2007/10/26 08:36:21 strk Exp $";
+rcsid="$Id: with.as,v 1.36 2007/10/26 08:47:39 strk Exp $";
#include "check.as"
@@ -349,7 +349,6 @@
setTarget("");
var o = {}; o.t = _root.clip1;
-var o2 = {}; o2.o = o;
setTarget('o.t');
xcheck_equals(_target, "/clip1");
setTarget("");
@@ -362,6 +361,21 @@
check_equals(_target, "/");
setTarget("");
+var o2 = {};
+o2.o = o;
+setTarget('o2.o'); // not a movie
+check_equals(_target, "/");
+setTarget("");
+
+setTarget('o2.o.t');
+xcheck_equals(_target, "/clip1");
+setTarget("");
+
+o2['o.p'] = o;
+setTarget('o2.o.p.t'); // member p of object o2.o doesn't exist
+check_equals(_target, "/");
+setTarget("");
+
with (o2)
{
setTarget('o:t');
@@ -519,5 +533,5 @@
#if OUTPUT_VERSION < 6
check_totals(41);
#else
- check_totals(95);
+ check_totals(98);
#endif
- [Gnash-commit] gnash/testsuite/actionscript.all with.as, Sandro Santilli, 2007/10/11
- [Gnash-commit] gnash/testsuite/actionscript.all with.as, Sandro Santilli, 2007/10/11
- [Gnash-commit] gnash/testsuite/actionscript.all with.as, Sandro Santilli, 2007/10/11
- [Gnash-commit] gnash/testsuite/actionscript.all with.as, Sandro Santilli, 2007/10/11
- [Gnash-commit] gnash/testsuite/actionscript.all with.as, Sandro Santilli, 2007/10/23
- [Gnash-commit] gnash/testsuite/actionscript.all with.as, Sandro Santilli, 2007/10/23
- [Gnash-commit] gnash/testsuite/actionscript.all with.as,
Sandro Santilli <=