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: Sat, 29 Mar 2008 15:41:43 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  08/03/29 15:41:43

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

Log message:
        some tests for builtin constructor's "constructor" props.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.6077&r2=1.6078
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Function.as?cvsroot=gnash&r1=1.69&r2=1.70
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/MovieClip.as?cvsroot=gnash&r1=1.120&r2=1.121
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Object.as?cvsroot=gnash&r1=1.47&r2=1.48

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.6077
retrieving revision 1.6078
diff -u -b -r1.6077 -r1.6078
--- ChangeLog   29 Mar 2008 15:04:41 -0000      1.6077
+++ ChangeLog   29 Mar 2008 15:41:42 -0000      1.6078
@@ -1,5 +1,11 @@
 2008-03-29 Sandro Santilli <address@hidden>
 
+       * testsuite/actionscript.all/: Function.as,
+         MovieClip.as, Object.as: some tests for builtin
+         constructor's "constructor" props.
+
+2008-03-29 Sandro Santilli <address@hidden>
+
        * testsuite/libnet.all/test_http.cpp: fix qualification
          of enum.
        * Makefile.am: don't enable build of cygnal on 'distcheck'

Index: testsuite/actionscript.all/Function.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Function.as,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -b -r1.69 -r1.70
--- testsuite/actionscript.all/Function.as      11 Mar 2008 19:31:47 -0000      
1.69
+++ testsuite/actionscript.all/Function.as      29 Mar 2008 15:41:43 -0000      
1.70
@@ -22,11 +22,13 @@
 // execute it like this gnash -1 -r 0 -v out.swf
 
 
-rcsid="$Id: Function.as,v 1.69 2008/03/11 19:31:47 strk Exp $";
+rcsid="$Id: Function.as,v 1.70 2008/03/29 15:41:43 strk Exp $";
 #include "check.as"
 
-#if OUTPUT_VERSION > 6
+#if OUTPUT_VERSION >= 6
 check_equals(Function.prototype.__proto__, Object.prototype);
+check_equals(Function.constructor, Function);
+check( ! Function.hasOwnProperty('__constructor__') );
 #endif
 
 // Define a function returning 'this'.name and the given args
@@ -426,7 +428,7 @@
         propRecorder.push(props.toString());
     }
     propRecorder.sort();
-    xcheck_equals(propRecorder.length, 4);
+    xcheck_equals(propRecorder.length, 5);
     check_equals(propRecorder[0], '__proto__');
     check_equals(propRecorder[1], 'callee');
     xcheck_equals(propRecorder[2], 'caller');
@@ -914,8 +916,8 @@
  check_totals(146); // SWF5
 #endif
 #if OUTPUT_VERSION == 6
- check_totals(202); // SWF6
+ check_totals(205); // SWF6
 #endif
 #if OUTPUT_VERSION >= 7
- check_totals(204); // SWF7,SWF8
+ check_totals(206); // SWF7,SWF8
 #endif

Index: testsuite/actionscript.all/MovieClip.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/MovieClip.as,v
retrieving revision 1.120
retrieving revision 1.121
diff -u -b -r1.120 -r1.121
--- testsuite/actionscript.all/MovieClip.as     11 Mar 2008 19:31:47 -0000      
1.120
+++ testsuite/actionscript.all/MovieClip.as     29 Mar 2008 15:41:43 -0000      
1.121
@@ -20,28 +20,28 @@
 // compile this test case with Ming makeswf, and then
 // execute it like this gnash -1 -r 0 -v out.swf
 
-rcsid="$Id: MovieClip.as,v 1.120 2008/03/11 19:31:47 strk Exp $";
+rcsid="$Id: MovieClip.as,v 1.121 2008/03/29 15:41:43 strk Exp $";
 
-rcsid="$Id: MovieClip.as,v 1.120 2008/03/11 19:31:47 strk Exp $";
+rcsid="$Id: MovieClip.as,v 1.121 2008/03/29 15:41:43 strk Exp $";
 #include "check.as"
 
 // To be called at end of test
 endOfTest = function() 
 {
 #if OUTPUT_VERSION <= 5
-       check_totals(199); // SWF5
+       check_totals(200); // SWF5
 #endif
 
 #if OUTPUT_VERSION == 6
-       check_totals(613); // SWF6
+       check_totals(614); // SWF6
 #endif
 
 #if OUTPUT_VERSION == 7
-       check_totals(630); // SWF7
+       check_totals(631); // SWF7
 #endif
 
 #if OUTPUT_VERSION >= 8
-       check_totals(631); // SWF8+
+       check_totals(632); // SWF8+
 #endif
 
        play();
@@ -105,6 +105,12 @@
 check_equals(typeof(mc.getSWFVersion), 'function');
 check_equals(mc.getSWFVersion(), OUTPUT_VERSION);
 
+#if OUTPUT_VERSION > 5
+ xcheck_equals(MovieClip.constructor, Function);
+#else
+ check_equals(MovieClip.constructor, Function);
+#endif
+
 #if OUTPUT_VERSION >= 6
 check(MovieClip.prototype.hasOwnProperty('loadMovie'));
 check(MovieClip.prototype.hasOwnProperty('_lockroot')); 

Index: testsuite/actionscript.all/Object.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Object.as,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -b -r1.47 -r1.48
--- testsuite/actionscript.all/Object.as        28 Mar 2008 16:37:45 -0000      
1.47
+++ testsuite/actionscript.all/Object.as        29 Mar 2008 15:41:43 -0000      
1.48
@@ -21,7 +21,7 @@
 // execute it like this gnash -1 -r 0 -v out.swf
 
 
-rcsid="$Id: Object.as,v 1.47 2008/03/28 16:37:45 strk Exp $";
+rcsid="$Id: Object.as,v 1.48 2008/03/29 15:41:43 strk Exp $";
 #include "check.as"
 
 // Test existance of methods
@@ -34,10 +34,15 @@
 check_equals(typeof(Object.prototype.toLocaleString), 'function');
 check_equals(typeof(Object.prototype.valueOf), 'function');
 check_equals(typeof(Object.prototype.constructor), 'function'); 
+check_equals(Object.prototype.constructor, Object); 
+check_equals(typeof(Object.prototype.toString.constructor), 'function');
 #if OUTPUT_VERSION > 5
+ xcheck_equals(Object.prototype.toString.constructor, Function);
  check(Object.prototype.hasOwnProperty('toString'));
  check(Object.prototype.hasOwnProperty('toLocaleString'));
  check(Object.prototype.hasOwnProperty('valueOf'));
+#else
+ check_equals(Object.prototype.toString.constructor, Function);
 #endif
 check_equals(Object.prototype.prototype, undefined);
 
@@ -98,7 +103,7 @@
 check(O.prototype.constructor.hasOwnProperty('prototype'));
 
 check_equals(O.prototype.constructor, Object);
-xcheck(O.constructor != Object);
+xcheck_equals(O.constructor, Function);
 
 check_equals(typeof(Object.prototype.addProperty), 'function');
 check_equals(typeof(Object.prototype.hasOwnProperty), 'function');
@@ -548,10 +553,10 @@
 
 
 #if OUTPUT_VERSION <= 5
-totals(65);
+totals(68);
 #endif
 
 #if OUTPUT_VERSION >= 6
-totals(172);
+totals(175);
 #endif
 




reply via email to

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