aboutsummaryrefslogtreecommitdiffstats
path: root/tests/string.1.js
diff options
context:
space:
mode:
authorRoberto Raggi <roberto.raggi@nokia.com>2012-05-14 16:03:10 +0200
committerRoberto Raggi <roberto.raggi@nokia.com>2012-05-14 16:03:10 +0200
commit3a7f8a31ed85b2643f2491ed600f29c3e61e2c78 (patch)
treeb39beaeec64cd8a1c8d0b2f99c9a876c9761b266 /tests/string.1.js
parentc996f53bedd685571ae4d414c3677678e7263faf (diff)
Initial work on the String object.
Diffstat (limited to 'tests/string.1.js')
-rw-r--r--tests/string.1.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/string.1.js b/tests/string.1.js
index 5ae5535881..8cc76bb82d 100644
--- a/tests/string.1.js
+++ b/tests/string.1.js
@@ -11,3 +11,10 @@ print(s3)
var s4 = new String.prototype.constructor(321)
print(s4)
+print(s4.charAt(0), s4.charAt(1), s4.charCodeAt(0))
+
+print(s4.concat("ciao", "cool"))
+print(s4.indexOf('1'))
+print(s4.lastIndexOf('1', 1))
+
+print("ss", s4.slice(0, 2))