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/Numb...


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Numb...
Date: Sun, 13 May 2007 17:13:09 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/05/13 17:13:09

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

Log message:
                * testsuite/actionscript.all/Number.as: skip 
conversion-to-number
                  tests if Ming doesnt' support ASM.
                * testsuite/actionscript.all/XML.as: add tests exposing two bugs
                  with XML (parseXML appending newly parsed stuff and 
ignoreWhite
                  being unsupported).

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3176&r2=1.3177
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Number.as?cvsroot=gnash&r1=1.18&r2=1.19
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/XML.as?cvsroot=gnash&r1=1.28&r2=1.29

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.3176
retrieving revision 1.3177
diff -u -b -r1.3176 -r1.3177
--- ChangeLog   13 May 2007 12:20:36 -0000      1.3176
+++ ChangeLog   13 May 2007 17:13:09 -0000      1.3177
@@ -1,3 +1,11 @@
+2007-05-13 Sandro Santilli <address@hidden>
+
+       * testsuite/actionscript.all/Number.as: skip conversion-to-number
+         tests if Ming doesnt' support ASM.
+       * testsuite/actionscript.all/XML.as: add tests exposing two bugs
+         with XML (parseXML appending newly parsed stuff and ignoreWhite
+         being unsupported).
+
 2007-05-12 Martin Guy <address@hidden>
 
        * server/stream.{h.cpp}: Punch a block-read primitive through the

Index: testsuite/actionscript.all/Number.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Number.as,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -b -r1.18 -r1.19
--- testsuite/actionscript.all/Number.as        19 Apr 2007 16:57:15 -0000      
1.18
+++ testsuite/actionscript.all/Number.as        13 May 2007 17:13:09 -0000      
1.19
@@ -26,7 +26,7 @@
 // TODO: test with SWF target != 6 (the only one tested so far)
 //     
 
-rcsid="$Id: Number.as,v 1.18 2007/04/19 16:57:15 strk Exp $";
+rcsid="$Id: Number.as,v 1.19 2007/05/13 17:13:09 strk Exp $";
 
 #include "check.as"
 
@@ -304,6 +304,8 @@
 // Check conversion to number
 //-----------------------------------------------------------
 
+#ifdef MING_SUPPORTS_ASM
+
 asm { push 'val',4 tonumber setvariable };
 check_equals(val, 4);
 
@@ -369,3 +371,6 @@
 asm { push 'val','obj' getvariable tonumber setvariable };
 check_equals(val, 9); 
 check_equals(9, val); 
+
+#endif // defined(MING_SUPPORTS_ASM)
+

Index: testsuite/actionscript.all/XML.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/XML.as,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -b -r1.28 -r1.29
--- testsuite/actionscript.all/XML.as   17 Apr 2007 12:58:20 -0000      1.28
+++ testsuite/actionscript.all/XML.as   13 May 2007 17:13:09 -0000      1.29
@@ -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.28 2007/04/17 12:58:20 strk Exp $";
+rcsid="$Id: XML.as,v 1.29 2007/05/13 17:13:09 strk Exp $";
 
 #include "dejagnu.as"
 #include "utils.as"
@@ -60,6 +60,8 @@
 check(!XML.hasOwnProperty("parseXML") );
 check(!XML.hasOwnProperty("send") );
 check(!XML.hasOwnProperty("sendAndLoad") );
+// ignoreWhite is undefined by default, but is used when set to true
+check(!XML.prototype.hasOwnProperty("ignoreWhite") );
 
 check(XMLNode.prototype.hasOwnProperty("appendChild") );
 check(XMLNode.prototype.hasOwnProperty("cloneNode") );
@@ -669,5 +671,27 @@
 note("myxml.loaded = "+myxml.loaded);
 note("myxml.load() returned "+ret);
 
+//------------------------------------------------
+// Test XML.ignoreWhite
+//------------------------------------------------
+
+myxml2 = new XML();
+xmlin = "<X1T> <X1C1> </X1C1> <X1C2> 
+</X1C2>        </X1T>";
+xmlin2 = "<X0><X1/></X0>";
+xmlin2_out = "<X0><X1 /></X0>";
+xmlin_stripwhite = "<X1T><X1C1 /><X1C2 /></X1T>";
+
+myxml2.ignoreWhite = false; // doesn't work w/out load ?
+myxml2.parseXML(xmlin);
+xcheck_equals(myxml2.toString(), xmlin);  // gnash fails discarding newlines 
and tabs I think..
+myxml2.parseXML(xmlin2); // parsing twice doesn't append !
+xcheck_equals(myxml2.toString(), xmlin2_out); 
+
+myxml2.ignoreWhite = true; // doesn't work w/out load ?
+myxml2.parseXML(xmlin);
+xcheck_equals(myxml2.toString(), xmlin_stripwhite); 
+
+
 // We're done
 //totals();




reply via email to

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