gnash-commit
[Top][All Lists]
Advanced

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

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


From: Zou Lunkai
Subject: [Gnash-commit] gnash/testsuite/actionscript.all case.as
Date: Mon, 17 Dec 2007 09:35:44 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Zou Lunkai <zoulunkai>  07/12/17 09:35:44

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

Log message:
        test that we should keep the cases of variables the same as when they 
are defined despite of swf version(Gnash fails).

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

Patches:
Index: case.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/case.as,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- case.as     29 Sep 2007 16:22:58 -0000      1.12
+++ case.as     17 Dec 2007 09:35:44 -0000      1.13
@@ -22,7 +22,7 @@
  *  Test case sensitivity 
  */
 
-rcsid="$Id: case.as,v 1.12 2007/09/29 16:22:58 strk Exp $";
+rcsid="$Id: case.as,v 1.13 2007/12/17 09:35:44 zoulunkai Exp $";
 
 #include "check.as"
 
@@ -198,4 +198,51 @@
   check_equals(typeof(mcRef['gotoAndStop']), 'function');
 #endif 
 
+
+delete obj;
+propRecorder = new Array();
+obj = { A: 1, b: 2 };
+for(var prop in obj)
+{
+   propRecorder.push(prop);
+}
+propRecorder.sort(1); //caseinsensitive sort
+xcheck_equals(propRecorder[0], 'A')
+check_equals(propRecorder[1], 'b')
+
+propRecorder = new Array();
+obj.a = 3;
+for(var prop in obj)
+{
+   propRecorder.push(prop);
+}
+propRecorder.sort(1); //caseinsensitive sort
+#if OUTPUT_VERSION < 7
+    xcheck_equals(propRecorder[0], 'A')
+    check_equals(propRecorder[1], 'b')
+#endif
+
+propRecorder = new Array();
+obj.B = 4;
+for(var prop in obj)
+{
+   propRecorder.push(prop);
+}
+propRecorder.sort(1); //caseinsensitive sort
+#if OUTPUT_VERSION < 7
+    xcheck_equals(propRecorder[0], 'A')
+    check_equals(propRecorder[1], 'b')
+#endif
+
+propRecorder = new Array();
+delete obj.a;
+for(var prop in obj)
+{
+   propRecorder.push(prop);
+}
+propRecorder.sort(1); //caseinsensitive sort
+#if OUTPUT_VERSION < 7
+    check_equals(propRecorder[0], 'b')
+#endif 
+
 totals();




reply via email to

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