gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash/testsuite/actionscript.all Function.as


From: Sandro Santilli
Subject: [Gnash-commit] gnash/testsuite/actionscript.all Function.as
Date: Mon, 19 Mar 2007 20:03:23 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/03/19 20:03:23

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

Log message:
        check that constructors do also have constructors defined (does any 
object exist w/out a constructor member?)

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Function.as?cvsroot=gnash&r1=1.29&r2=1.30

Patches:
Index: Function.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Function.as,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -b -r1.29 -r1.30
--- Function.as 19 Mar 2007 19:59:50 -0000      1.29
+++ Function.as 19 Mar 2007 20:03:23 -0000      1.30
@@ -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.29 2007/03/19 19:59:50 strk Exp $";
+rcsid="$Id: Function.as,v 1.30 2007/03/19 20:03:23 strk Exp $";
 
 #include "check.as"
 
@@ -524,10 +524,15 @@
 // Email is a Function instance, and it's "constructor" property
 // tells us so
 check_equals(typeof(Email.constructor), 'function');
-check_equals(typeof(Email.constructor.constructor), 'function');
 check_equals(Email.constructor, Function);
+check_equals(typeof(Email.constructor.constructor), 'function');
+check_equals(Email.constructor.constructor, Function);
+check_equals(typeof(Email.constructor.constructor.constructor), 'function');
+check_equals(Email.constructor.constructor.constructor, Function);
 #if OUTPUT_VERSION > 5
 xcheck(Email.hasOwnProperty('constructor'));
+xcheck(Email.constructor.hasOwnProperty('constructor'));
+xcheck(Email.constructor.constructor.hasOwnProperty('constructor'));
 #endif // OUTPUT_VERSION > 5
 
 // Anyway, Email was not created using 'new', so it does




reply via email to

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