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


From: Benjamin Wolsey
Subject: [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Stri...
Date: Fri, 25 Apr 2008 11:11:08 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Benjamin Wolsey <bwy>   08/04/25 11:11:08

Modified files:
        .              : ChangeLog 
        testsuite/actionscript.all: String.as 

Log message:
                * testsuite/actionscript.all/String.as: tests for String.split.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.6392&r2=1.6393
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/String.as?cvsroot=gnash&r1=1.55&r2=1.56

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.6392
retrieving revision 1.6393
diff -u -b -r1.6392 -r1.6393
--- ChangeLog   25 Apr 2008 10:26:32 -0000      1.6392
+++ ChangeLog   25 Apr 2008 11:11:07 -0000      1.6393
@@ -1,3 +1,7 @@
+2008-04-24 Benjamin Wolsey <address@hidden>
+
+       * testsuite/actionscript.all/String.as: tests for String.split.
+
 2008-04-25 Sandro Santilli <address@hidden>
 
        * testsuite/swfdec/swfdec_gnash_tester: don't make use

Index: testsuite/actionscript.all/String.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/String.as,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -b -r1.55 -r1.56
--- testsuite/actionscript.all/String.as        17 Apr 2008 12:39:22 -0000      
1.55
+++ testsuite/actionscript.all/String.as        25 Apr 2008 11:11:08 -0000      
1.56
@@ -17,7 +17,7 @@
 // Original author: Mike Carlson - June 19th, 2006
 
 
-rcsid="$Id: String.as,v 1.55 2008/04/17 12:39:22 bwy Exp $";
+rcsid="$Id: String.as,v 1.56 2008/04/25 11:11:08 bwy Exp $";
 #include "check.as"
 
 check_equals(typeof(String), 'function');
@@ -215,6 +215,61 @@
 check_equals(typeof(ret[0]), 'string');
 check_equals(ret[0], 'abcde');
 
+st = "";
+g = st.split("", 0);
+#if OUTPUT_VERSION > 5
+xcheck_equals(g.length, 0);
+xcheck_equals(typeof(g[0]), "undefined");
+xcheck_equals(g[0], undefined);
+#else
+check_equals(g.length, 1);
+check_equals(typeof(g[0]), "string");
+check_equals(g[0], "");
+#endif
+
+st = "";
+g = st.split("x", 0);
+#if OUTPUT_VERSION > 5
+check_equals(g.length, 1);
+check_equals(typeof(g[0]), "string");
+check_equals(g[0], "");
+#else
+check_equals(g.length, 0);
+check_equals(typeof(g[0]), "undefined");
+check_equals(g[0], undefined);
+#endif
+
+st = "";
+g = st.split("x", 1);
+check_equals(g.length, 1);
+check_equals(typeof(g[0]), "string");
+check_equals(g[0], "");
+
+st = "f";
+g = st.split("", 0);
+#if OUTPUT_VERSION > 5
+check_equals(g.length, 0);
+check_equals(typeof(g[0]), "undefined");
+check_equals(g[0], undefined);
+#else
+check_equals(g.length, 1);
+check_equals(typeof(g[0]), "string");
+check_equals(g[0], "f");
+#endif
+
+
+st = "f";
+g = st.split("x", 0);
+check_equals(g.length, 0);
+check_equals(typeof(g[0]), "undefined");
+check_equals(g[0], undefined);
+
+st = "f";
+g = st.split("x", 1);
+check_equals(g.length, 1);
+check_equals(typeof(g[0]), "string");
+check_equals(g[0], "f");
+
 
 //----------------------------------------
 // Check String.fromCharCode
@@ -844,7 +899,7 @@
 #endif
 
 #if OUTPUT_VERSION < 6
- check_totals(240);
+ check_totals(258);
 #else
- check_totals(256);
+ check_totals(274);
 #endif




reply via email to

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