gnash-commit
[Top][All Lists]
Advanced

[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: Mon, 23 Oct 2006 16:09:15 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  06/10/23 16:09:15

Modified files:
        .              : ChangeLog 
        testsuite/actionscript.all: with.as 

Log message:
                * testsuite/actionscript.all/with.as: add a few more tests
                  for access of variable in higher-level scopes.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.1363&r2=1.1364
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/with.as?cvsroot=gnash&r1=1.3&r2=1.4

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.1363
retrieving revision 1.1364
diff -u -b -r1.1363 -r1.1364
--- ChangeLog   23 Oct 2006 15:59:37 -0000      1.1363
+++ ChangeLog   23 Oct 2006 16:09:15 -0000      1.1364
@@ -1,5 +1,7 @@
 2006-10-23 Sandro Santilli <address@hidden>
 
+       * testsuite/actionscript.all/with.as: add a few more tests
+         for access of variable in higher-level scopes.
        * server/: movie_interface.h, movie_root.h: added
          isMouseOverActiveEntity interface and implementation.
        * gui/gui.cpp (notify_mouse_moved): call isMouseOverActiveEntity

Index: testsuite/actionscript.all/with.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/with.as,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- testsuite/actionscript.all/with.as  19 Oct 2006 14:21:27 -0000      1.3
+++ testsuite/actionscript.all/with.as  23 Oct 2006 16:09:15 -0000      1.4
@@ -42,10 +42,11 @@
 // 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.3 2006/10/19 14:21:27 strk Exp $";
+rcsid="$Id: with.as,v 1.4 2006/10/23 16:09:15 strk Exp $";
 
 #include "check.as"
 
+var l0 = 5;
 var obj = { a:1, b:2 };
 
 check_equals(a, undefined);
@@ -55,6 +56,7 @@
 {
        check_equals(a, 1);
        check_equals(b, 2);
+       check_equals(l0, 5);
        c = 3; // see below
 }
 // make sure that the assignment above didn't affect the object
@@ -65,9 +67,12 @@
 {
        with(o)
        {
+               check_equals(l0, 5); // scan back to the root
+               check_equals(obj.a, 1); // scan back to the root
                check_equals(a, 1);
                check_equals(b, 2);
        }
+       check_equals(obj.a, 1); // scan back to the root
        with(obj) // scans back to the root...
        {
                check_equals(a, 1);
@@ -99,6 +104,7 @@
 // but supported by later target (alexis sais)
 with(o8) {
 with(o) { with(o) { with(o) { with(o) { with(o) { with(o) { with(o) {
+       check_equals(obj.a, 1); // scan back to the root
        found8 = a;
 }}}}}}}} // depth 8 (should be unsupported by SWF5)
 #if OUTPUT_VERSION > 5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]