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


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Inhe...
Date: Mon, 22 Jan 2007 16:15:33 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/01/22 16:15:33

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

Log message:
                * testsuite/actionscript.all/Inheritance.as: additional
                  test for 'new Function' construct.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.2145&r2=1.2146
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Inheritance.as?cvsroot=gnash&r1=1.15&r2=1.16

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.2145
retrieving revision 1.2146
diff -u -b -r1.2145 -r1.2146
--- ChangeLog   22 Jan 2007 14:01:13 -0000      1.2145
+++ ChangeLog   22 Jan 2007 16:15:32 -0000      1.2146
@@ -1,5 +1,7 @@
 2007-01-22 Sandro Santilli <address@hidden>
 
+       * testsuite/actionscript.all/Inheritance.as: additional 
+         test for 'new Function' construct.
        * server/sprite_instance.cpp (attachMovieClipInterface, get_member):
          handled most standard properties by means of calls to the new
          'init_property' call. Fixes run of the new attachMovieTest testcase

Index: testsuite/actionscript.all/Inheritance.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Inheritance.as,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -b -r1.15 -r1.16
--- testsuite/actionscript.all/Inheritance.as   8 Jan 2007 12:27:14 -0000       
1.15
+++ testsuite/actionscript.all/Inheritance.as   22 Jan 2007 16:15:32 -0000      
1.16
@@ -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: Inheritance.as,v 1.15 2007/01/08 12:27:14 strk Exp $";
+rcsid="$Id: Inheritance.as,v 1.16 2007/01/22 16:15:32 strk Exp $";
 
 #include "check.as"
 
@@ -39,6 +39,12 @@
 // Make 'functionObject' be an instance of Function (an object)
 var functionObject = new Function();
 
+#if OUTPUT_VERSION > 5
+check_equals(typeof(functionObject), 'object');
+#else
+xcheck_equals(typeof(functionObject), 'undefined');
+#endif
+
 // functionObject '__proto__' is a reference to
 // it's constructor's 'prototype' member.
 check_equals (functionObject.__proto__, Function.prototype);
@@ -56,6 +62,11 @@
 // itself.
 check (functionObject.prototype == undefined);
 
+#if OUTPUT_VERSION > 5
+functionObject.prototype = {a:1};
+check_equals(functionObject.prototype.a, 1);
+#endif
+
 // Make 'userFunc' be a function (should inherit Function things)
 var userFunc = function() {};
 check (userFunc.__proto__ == Function.prototype);




reply via email to

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