[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/with.as
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/with.as |
Date: |
Thu, 25 Oct 2007 07:22:03 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 07/10/25 07:22:03
Modified files:
. : ChangeLog
testsuite/actionscript.all: with.as
Log message:
* testsuite/actionscript.all/with.as: more setTarget tests
(failing)
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.4700&r2=1.4701
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/with.as?cvsroot=gnash&r1=1.33&r2=1.34
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.4700
retrieving revision 1.4701
diff -u -b -r1.4700 -r1.4701
--- ChangeLog 24 Oct 2007 23:54:22 -0000 1.4700
+++ ChangeLog 25 Oct 2007 07:22:02 -0000 1.4701
@@ -1,5 +1,9 @@
2007-10-24 Sandro Santilli <address@hidden>
+ * testsuite/actionscript.all/with.as: more setTarget tests (failing)
+
+2007-10-24 Sandro Santilli <address@hidden>
+
* server/as_environment.cpp (find_target): use original target
for relative paths.
* testsuite/swfdec/PASSING: succeed in settarget-relative-*.swf
Index: testsuite/actionscript.all/with.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/with.as,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -b -r1.33 -r1.34
--- testsuite/actionscript.all/with.as 24 Oct 2007 07:58:14 -0000 1.33
+++ testsuite/actionscript.all/with.as 25 Oct 2007 07:22:03 -0000 1.34
@@ -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.33 2007/10/24 07:58:14 strk Exp $";
+rcsid="$Id: with.as,v 1.34 2007/10/25 07:22:03 strk Exp $";
#include "check.as"
@@ -338,9 +338,31 @@
check_equals(checkpoint, '/');
setTarget("");
+var o = {}; o.t = _root.clip1;
+var o2 = {}; o2.o = o;
+setTarget('o.t');
+xcheck_equals(_target, "/clip1");
+setTarget("");
+
+setTarget('o:t');
+xcheck_equals(_target, "/clip1");
+setTarget("");
+
+setTarget('../o:t'); // invalid ?
+check_equals(_target, "/");
+setTarget("");
+
+with (o2)
+{
+ setTarget('o:t');
+ xcheck_equals(_target, "/clip1");
+ setTarget("");
+}
+
//
// TODO: add tests for setTargetExpression
//
+
#endif //OUTPUT_VERSION > 5
//---------------------------------------------------------
@@ -487,5 +509,5 @@
#if OUTPUT_VERSION < 6
check_totals(41);
#else
- check_totals(86);
+ check_totals(90);
#endif