[Top][All Lists]
[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: |
Tue, 05 Feb 2008 14:21:55 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Benjamin Wolsey <bwy> 08/02/05 14:21:55
Modified files:
. : ChangeLog
testsuite/actionscript.all: String.as
Log message:
Tests for multibyte character strings.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.5558&r2=1.5559
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/String.as?cvsroot=gnash&r1=1.35&r2=1.36
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.5558
retrieving revision 1.5559
diff -u -b -r1.5558 -r1.5559
--- ChangeLog 5 Feb 2008 12:01:50 -0000 1.5558
+++ ChangeLog 5 Feb 2008 14:21:54 -0000 1.5559
@@ -1,5 +1,10 @@
2008-02-05 Benjamin Wolsey <address@hidden>
+ * testsuite/actionscript.all/String.as: add failing tests for
+ string methods on multi-byte characters.
+
+2008-02-05 Benjamin Wolsey <address@hidden>
+
* server/movie_root.cpp: send unique gnash::key::code not SWFCode
to event_id; edit_text_character relies on this code to work out
which character was passed and SWFcode is bogus.
Index: testsuite/actionscript.all/String.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/String.as,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -b -r1.35 -r1.36
--- testsuite/actionscript.all/String.as 25 Jan 2008 20:42:40 -0000
1.35
+++ testsuite/actionscript.all/String.as 5 Feb 2008 14:21:55 -0000
1.36
@@ -16,7 +16,7 @@
// Original author: Mike Carlson - June 19th, 2006
-rcsid="$Id: String.as,v 1.35 2008/01/25 20:42:40 strk Exp $";
+rcsid="$Id: String.as,v 1.36 2008/02/05 14:21:55 bwy Exp $";
#include "check.as"
@@ -281,6 +281,18 @@
var b = new String("1234");
check_equals ( b.substring(3, 6), "4");
+//-------------------------------------------
+// Check multi-byte chars with all functions
+//-------------------------------------------
+
+var a = new String("Längere Wörter");
+xcheck_equals (a.length, 14);
+xcheck_equals (a.substring(2,4), "ng");
+xcheck_equals (a.charAt(1), "ä");
+xcheck_equals (a.charAt(2), "n");
+xcheck_equals (a.slice(3,5), "ge");
+xcheck_equals (a.charCodeAt(9), 246);
+
// see check.as
#ifdef MING_SUPPORTS_ASM
@@ -482,7 +494,7 @@
check_equals(r, "s:");
#if OUTPUT_VERSION < 6
- check_totals(175);
+ check_totals(181);
#else
- check_totals(203);
+ check_totals(209);
#endif
- [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Stri...,
Benjamin Wolsey <=