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/getv...


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/getv...
Date: Mon, 16 Apr 2007 13:02:49 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/04/16 13:02:49

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

Log message:
                * testsuite/actionscript.all/getvariable.as: check 'this' 
pointer when
                  calling a function trough a path.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.2888&r2=1.2889
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/getvariable.as?cvsroot=gnash&r1=1.10&r2=1.11

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.2888
retrieving revision 1.2889
diff -u -b -r1.2888 -r1.2889
--- ChangeLog   16 Apr 2007 12:31:01 -0000      1.2888
+++ ChangeLog   16 Apr 2007 13:02:49 -0000      1.2889
@@ -1,5 +1,7 @@
 2007-04-16 Sandro Santilli <address@hidden>
 
+       * testsuite/actionscript.all/getvariable.as: check 'this' pointer when
+         calling a function trough a path.
        * testsuite/server/Makefile.am: add libgnashamf.la to GNASH libs.
        * testsuite/generic-testrunner.sh, doc/C/internals.xml:
          Add -f switch to specify the maximum number of frame advancements.

Index: testsuite/actionscript.all/getvariable.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/getvariable.as,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- testsuite/actionscript.all/getvariable.as   11 Apr 2007 07:31:53 -0000      
1.10
+++ testsuite/actionscript.all/getvariable.as   16 Apr 2007 13:02:49 -0000      
1.11
@@ -19,7 +19,7 @@
 // compile this test case with Ming makeswf, and then
 // execute it like this gnash -1 -r 0 -v out.swf
 
-rcsid="$Id: getvariable.as,v 1.10 2007/04/11 07:31:53 zoulunkai Exp $";
+rcsid="$Id: getvariable.as,v 1.11 2007/04/16 13:02:49 strk Exp $";
 
 #include "check.as"
 
@@ -331,6 +331,24 @@
 func = new func_obj();
 func();
 
+//---------------------------------------------------------------------
+// Check scope of function called trough a path
+//---------------------------------------------------------------------
+
+num = 7;
+func = function() { return this.num; };
+o = new Object;
+o.func = func;
+o.num = 5;
+asm {
+        push 'checkpoint'
+       push 0
+       push '_root.o.func'
+       callfunction
+        setvariable
+};
+xcheck_equals(checkpoint, 5);
+
 
 //-----------------------------------------------------------------------
 // TODO: try use of 'with' stack




reply via email to

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