gnash-commit
[Top][All Lists]
Advanced

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

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


From: Zou Lunkai
Subject: [Gnash-commit] gnash/testsuite/actionscript.all Inheritance.as
Date: Thu, 16 Aug 2007 09:19:25 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Zou Lunkai <zoulunkai>  07/08/16 09:19:24

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

Log message:
        * testsuite/actionscript.all/Inheritance.as: more tests. testing for 
inheritance
          never stops:)

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Inheritance.as?cvsroot=gnash&r1=1.32&r2=1.33

Patches:
Index: Inheritance.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Inheritance.as,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -b -r1.32 -r1.33
--- Inheritance.as      26 Jul 2007 03:41:18 -0000      1.32
+++ Inheritance.as      16 Aug 2007 09:19:24 -0000      1.33
@@ -21,7 +21,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.32 2007/07/26 03:41:18 strk Exp $";
+rcsid="$Id: Inheritance.as,v 1.33 2007/08/16 09:19:24 zoulunkai Exp $";
 
 #include "check.as"
 
@@ -263,11 +263,22 @@
 
 check_equals(typeof(DerivedClass1.prototype.constructor), 'function');
 check_equals(typeof(DerivedClass1.constructor), 'function');
-#if OUTPUT_VERSION > 6
-xcheck(! DerivedClass1.prototype.hasOwnProperty('constructor'));
+#if OUTPUT_VERSION >= 6
+xcheck(DerivedClass1.prototype.hasOwnProperty('__proto__'));
+check(DerivedClass1.prototype.hasOwnProperty('__constructor__'));
+check(DerivedClass1.prototype.__proto__.hasOwnProperty('var1'));
+
+check(! DerivedClass1.prototype.hasOwnProperty('var1'));
+check(! DerivedClass1.prototype.hasOwnProperty('var3'));
+check_equals(DerivedClass1.var3, undefined);
+check(! DerivedClass1.prototype.hasOwnProperty('toString'));
+check(! DerivedClass1.prototype.hasOwnProperty('valueOf'));
+
 check(DerivedClass1.hasOwnProperty('constructor'));
 #endif
-check_equals(DerivedClass1.prototype.constructor, BaseClass1);
+check_equals(DerivedClass1.constructor, Function);
+check_equals(DerivedClass1.prototype.__proto__.constructor, BaseClass1);
+//check_equals(DerivedClass1.prototype.constructor, BaseClass1);
 
 DerivedClass1.prototype.var2 = "var_in_Derived_prototype";
 var obj = new DerivedClass1;




reply via email to

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