gnash-commit
[Top][All Lists]
Advanced

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

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


From: Sandro Santilli
Subject: [Gnash-commit] gnash/testsuite/actionscript.all XML.as
Date: Fri, 21 Dec 2007 17:29:52 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/12/21 17:29:52

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

Log message:
        Add test for existance of XML.prorotype.onLoad

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/XML.as?cvsroot=gnash&r1=1.53&r2=1.54

Patches:
Index: XML.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/XML.as,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -b -r1.53 -r1.54
--- XML.as      21 Dec 2007 00:10:12 -0000      1.53
+++ XML.as      21 Dec 2007 17:29:51 -0000      1.54
@@ -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: XML.as,v 1.53 2007/12/21 00:10:12 strk Exp $";
+rcsid="$Id: XML.as,v 1.54 2007/12/21 17:29:51 strk Exp $";
 
 #include "check.as"
 //#include "dejagnu.as"
@@ -45,6 +45,7 @@
 check(! XML.prototype.hasOwnProperty("attributes"));
 check(! XML.prototype.hasOwnProperty("nodeValue"));
 check(XML.prototype.hasOwnProperty("onData"));
+xcheck(XML.prototype.hasOwnProperty("onLoad")); // it seems it wouldn't do 
anything anyway, would it ?
 check(XML.prototype.hasOwnProperty("createElement") );
 check(XML.prototype.hasOwnProperty("addRequestHeader") );
 check(XML.prototype.hasOwnProperty("createTextNode") );
@@ -647,6 +648,8 @@
 check(myxml.onData != XML.prototype.parseXML);
 #endif
 
+check(!myxml.hasOwnProperty('onLoad'));
+
 myxml.onLoadCalls = 0;
 
 myxml.onLoad = function(success)
@@ -719,9 +722,9 @@
        if ( this.onLoadCalls == 2 )
        {
 #if OUTPUT_VERSION < 6
-               check_totals(264);
+               check_totals(265);
 #else
-               check_totals(339);
+               check_totals(341);
 #endif
                play();
        }




reply via email to

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