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


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Func...
Date: Thu, 26 Apr 2007 13:44:08 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/04/26 13:44:07

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

Log message:
                * testsuite/actionscript.all/Function.as: test for 'this' in
                  local function.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3008&r2=1.3009
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Function.as?cvsroot=gnash&r1=1.42&r2=1.43

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.3008
retrieving revision 1.3009
diff -u -b -r1.3008 -r1.3009
--- ChangeLog   26 Apr 2007 13:34:00 -0000      1.3008
+++ ChangeLog   26 Apr 2007 13:44:07 -0000      1.3009
@@ -1,5 +1,7 @@
 2007-04-26 Sandro Santilli <address@hidden>
 
+       * testsuite/actionscript.all/Function.as: test for 'this' in
+         local function.
        * server/as_environment.{cpp,h}: refactor local variables
          so they are stored into a proper object. Will help introducing
          a VariableRef class that associates a Property to an as_object.

Index: testsuite/actionscript.all/Function.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Function.as,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -b -r1.42 -r1.43
--- testsuite/actionscript.all/Function.as      26 Apr 2007 10:17:56 -0000      
1.42
+++ testsuite/actionscript.all/Function.as      26 Apr 2007 13:44:07 -0000      
1.43
@@ -20,7 +20,7 @@
 // compile this test case with Ming makeswf, and then
 // execute it like this gnash -1 -r 0 -v out.swf
 
-rcsid="$Id: Function.as,v 1.42 2007/04/26 10:17:56 strk Exp $";
+rcsid="$Id: Function.as,v 1.43 2007/04/26 13:44:07 strk Exp $";
 
 #include "check.as"
 
@@ -630,6 +630,16 @@
 
 function testInFunctionContext(o)
 {
+       var localGetThis = function() { return this; };
+       ret = localGetThis();
+       xcheck_equals(typeof(ret), 'object');
+#if OUTPUT_VERSION < 6
+       xcheck(ret == testInFunctionContext);
+#else
+       check(ret != testInFunctionContext);
+#endif
+       xcheck(ret != this);
+
        with(o) {
                // see bug #19704
                ret = getThis();




reply via email to

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