gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash/testsuite/misc-swfc.all action_execution_...


From: Sandro Santilli
Subject: [Gnash-commit] gnash/testsuite/misc-swfc.all action_execution_...
Date: Tue, 13 Nov 2007 12:06:52 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/11/13 12:06:52

Modified files:
        testsuite/misc-swfc.all: action_execution_order_test10.sc 

Log message:
        Add a test showing that the pp is bogus, not Gnash

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-swfc.all/action_execution_order_test10.sc?cvsroot=gnash&r1=1.8&r2=1.9

Patches:
Index: action_execution_order_test10.sc
===================================================================
RCS file: 
/sources/gnash/gnash/testsuite/misc-swfc.all/action_execution_order_test10.sc,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- action_execution_order_test10.sc    13 Nov 2007 11:36:39 -0000      1.8
+++ action_execution_order_test10.sc    13 Nov 2007 12:06:52 -0000      1.9
@@ -183,7 +183,13 @@
 
     _root.note("mc4 init actions"); 
     _root.xcheck_equals(typeof(mc4), 'movieclip');
-    _root.xcheck_equals(mc4.__proto__, Object.prototype);
+    // What a bad bug the pp has !
+    // First query of __proto__ turns it into the correct prototype
+    // (MovieClip.prototype) buf first query returns the *old* rather
+    // then the new value 
+    _root.xcheck(mc4.__proto__ == Object.prototype); // returns wrong answer 
at first, gnash does the right thing here
+    _root.check(mc4.__proto__ != Object.prototype); // and correct at second 
and subsequent queries
+    _root.xcheck_equals(mc4.__proto__, MovieClip.prototype); // <--- this is 
the correct one
     
     mc4.onInitialize = function () { 
       _root.note("mc4 user defined onInitialize"); 
@@ -224,7 +230,7 @@
 
 .frame 15
   .action:
-    totals(7);
+    totals(9);
     stop();
   .end
   




reply via email to

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