[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/testsuite/actionscript.all Object.as
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash/testsuite/actionscript.all Object.as |
Date: |
Fri, 31 Aug 2007 19:05:48 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 07/08/31 19:05:48
Modified files:
testsuite/actionscript.all: Object.as
Log message:
more tests
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Object.as?cvsroot=gnash&r1=1.30&r2=1.31
Patches:
Index: Object.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Object.as,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -b -r1.30 -r1.31
--- Object.as 31 Aug 2007 18:20:30 -0000 1.30
+++ Object.as 31 Aug 2007 19:05:48 -0000 1.31
@@ -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: Object.as,v 1.30 2007/08/31 18:20:30 strk Exp $";
+rcsid="$Id: Object.as,v 1.31 2007/08/31 19:05:48 strk Exp $";
#include "check.as"
@@ -40,6 +40,9 @@
// in trace_properties.as from swfdec testsuite.
// WE WANT THIS FIXED !!
xcheck_equals(Object.prototype.__proto__, undefined);
+#if OUTPUT_VERSION > 5
+ check(!Object.prototype.hasOwnProperty("__proto__"));
+#endif
xcheck_equals(Object.prototype.registerClass, undefined);
@@ -111,7 +114,7 @@
check_equals(obj.__proto__, Object.prototype);
check_equals(typeof(obj.prototype), 'undefined');
-xcheck_equals(typeof(obj.__proto__), 'undefined');
+check_equals(typeof(obj.__proto__), 'object');
#if OUTPUT_VERSION == 5
// Gnash fails on swf5 but succeeds on swf6,7,8
@@ -152,9 +155,12 @@
// Test Object creation using literal initialization
var obj2 = { member:1 }; // uses SWFACTION_INITOBJECT
-check (obj2 != undefined );
-check (typeof(obj2) == "object");
-check (obj2.__proto__.constructor == Object);
+check_equals(typeof(obj2), "object");
+check_equals(typeof(obj2.__proto__), 'object');
+check_equals(obj2.__proto__, Object.prototype);
+check_equals(obj2.__proto__.constructor, Object);
+check_equals(typeof(obj2.prototype), 'undefined');
+
// Test initialized object members
check ( obj2.member == 1 )