gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] /srv/bzr/gnash/avm2 r9595: Revert String.as back to the v


From: Tom Stellard
Subject: [Gnash-commit] /srv/bzr/gnash/avm2 r9595: Revert String.as back to the version in trunk, and add #ifdef to include the haxe check.as when compiling with haxe.
Date: Thu, 09 Oct 2008 10:39:45 +0800
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 9595
committer: Tom Stellard <address@hidden>
branch nick: gnash_dev
timestamp: Thu 2008-10-09 10:39:45 +0800
message:
  Revert String.as back to the version in trunk, and add #ifdef to include the 
haxe check.as when compiling with haxe.
modified:
  testsuite/actionscript.all/String.as
=== modified file 'testsuite/actionscript.all/String.as'
--- a/testsuite/actionscript.all/String.as      2008-10-03 15:26:56 +0000
+++ b/testsuite/actionscript.all/String.as      2008-10-09 02:39:45 +0000
@@ -114,17 +114,13 @@
 check_equals ( a.lastIndexOf("lawa"), 8);
 
 // Applied to object.
-
 o = new Object;
-
 o.charCodeAt = String.prototype.charCodeAt;
 o.charAt = String.prototype.charAt;
-
 c = o.charAt(4);
 check_equals(c, "e");
 c = o.charCodeAt(4);
 check_equals(c, "101");
-
 //----------------------------------------
 // Check String.indexOf
 // TODO: test with ASnative(251,8)
@@ -345,6 +341,7 @@
 ar = o.split(":");
 check_equals(ar.length, 3);
 
+
 #else
 // SWF5:
 
@@ -812,6 +809,8 @@
 
 // These tests are only correct with SWF6 and above.
 
+var a = new String("Längere Wörter");
+
 #if OUTPUT_VERSION > 5
 check_equals (a.length, 14);
 check_equals (a.substring(2,4), "ng");


reply via email to

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