[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/testsuite/actionscript.all with.as
From: |
Zou Lunkai |
Subject: |
[Gnash-commit] gnash/testsuite/actionscript.all with.as |
Date: |
Thu, 27 Sep 2007 09:09:43 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Zou Lunkai <zoulunkai> 07/09/27 09:09:43
Modified files:
testsuite/actionscript.all: with.as
Log message:
add tests for setTarget, but probably bogus due to Ming bugs.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/with.as?cvsroot=gnash&r1=1.13&r2=1.14
Patches:
Index: with.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/with.as,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -b -r1.13 -r1.14
--- with.as 26 Jul 2007 03:41:20 -0000 1.13
+++ with.as 27 Sep 2007 09:09:43 -0000 1.14
@@ -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.13 2007/07/26 03:41:20 strk Exp $";
+rcsid="$Id: with.as,v 1.14 2007/09/27 09:09:43 zoulunkai Exp $";
#include "check.as"
@@ -182,8 +182,10 @@
with(mc2)
{
+ check_equals(this, _root);
with(mc1)
{
+ check_equals(this, _level0);
check_equals(a, 1);
check_equals(b, 1);
check_equals(x, 3);
@@ -221,3 +223,17 @@
check_equals(typeof(f_y()), 'undefined');
}
}
+
+
+//
+// tests of setTarget
+//
+tellTarget("mc1");
+// setTarget and With won't change this context.
+// but the deduction might be incorrect!!!
+check_equals(this, _root);
+tellTarget("");
+// Ming thinks tellTarget is a Function, but it is not.
+// So all related tests are probably bogus.
+check_equals(typeof(tellTarget), 'undefined');
+check_equals(this, _root);
- [Gnash-commit] gnash/testsuite/actionscript.all with.as,
Zou Lunkai <=