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/case.as


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/case.as
Date: Mon, 17 Dec 2007 11:09:16 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/12/17 11:09:16

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

Log message:
        fix testcase, add test for .length

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.5190&r2=1.5191
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/case.as?cvsroot=gnash&r1=1.13&r2=1.14

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.5190
retrieving revision 1.5191
diff -u -b -r1.5190 -r1.5191
--- ChangeLog   17 Dec 2007 09:32:38 -0000      1.5190
+++ ChangeLog   17 Dec 2007 11:09:15 -0000      1.5191
@@ -1,5 +1,10 @@
 2007-12-17 Sandro Santilli <address@hidden>
 
+       * testsuite/actionscript.all/case.as: fix testcase, add test for
+         .length.
+
+2007-12-17 Sandro Santilli <address@hidden>
+
        * gui/: gtk.cpp, gtksup.h: grab focus on click.
          Fixes bug #21808. Thanks Benjamin Wolsey for research
          on the topic.

Index: testsuite/actionscript.all/case.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/case.as,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -b -r1.13 -r1.14
--- testsuite/actionscript.all/case.as  17 Dec 2007 09:35:44 -0000      1.13
+++ testsuite/actionscript.all/case.as  17 Dec 2007 11:09:16 -0000      1.14
@@ -22,7 +22,7 @@
  *  Test case sensitivity 
  */
 
-rcsid="$Id: case.as,v 1.13 2007/12/17 09:35:44 zoulunkai Exp $";
+rcsid="$Id: case.as,v 1.14 2007/12/17 11:09:16 strk Exp $";
 
 #include "check.as"
 
@@ -207,7 +207,12 @@
    propRecorder.push(prop);
 }
 propRecorder.sort(1); //caseinsensitive sort
-xcheck_equals(propRecorder[0], 'A')
+check_equals(propRecorder.length, 2);
+#if OUTPUT_VERSION < 7
+    xcheck_equals(propRecorder[0], 'A')
+#else
+    check_equals(propRecorder[0], 'A')
+#endif
 check_equals(propRecorder[1], 'b')
 
 propRecorder = new Array();
@@ -218,8 +223,14 @@
 }
 propRecorder.sort(1); //caseinsensitive sort
 #if OUTPUT_VERSION < 7
+    check_equals(propRecorder.length, 2);
     xcheck_equals(propRecorder[0], 'A')
     check_equals(propRecorder[1], 'b')
+#else
+    check_equals(propRecorder.length, 3);
+    check_equals(propRecorder[0], 'a')
+    check_equals(propRecorder[1], 'A')
+    check_equals(propRecorder[2], 'b')
 #endif
 
 propRecorder = new Array();
@@ -230,8 +241,15 @@
 }
 propRecorder.sort(1); //caseinsensitive sort
 #if OUTPUT_VERSION < 7
+    check_equals(propRecorder.length, 2);
     xcheck_equals(propRecorder[0], 'A')
     check_equals(propRecorder[1], 'b')
+#else
+    check_equals(propRecorder.length, 4);
+    xcheck_equals(propRecorder[0], 'A') // gnash has 'a' before 'A' (bug in 
Array.sort ?)
+    xcheck_equals(propRecorder[1], 'a') // bug in Array.sort ?
+    check_equals(propRecorder[2], 'B')
+    check_equals(propRecorder[3], 'b')
 #endif
 
 propRecorder = new Array();
@@ -242,7 +260,13 @@
 }
 propRecorder.sort(1); //caseinsensitive sort
 #if OUTPUT_VERSION < 7
+    check_equals(propRecorder.length, 1);
     check_equals(propRecorder[0], 'b')
+#else
+    check_equals(propRecorder.length, 3);
+    check_equals(propRecorder[0], 'A')
+    check_equals(propRecorder[1], 'B')
+    check_equals(propRecorder[2], 'b')
 #endif 
 
 totals();




reply via email to

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