summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testToUpperToLower.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/basic/testToUpperToLower.js')
-rw-r--r--js/src/jit-test/tests/basic/testToUpperToLower.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/testToUpperToLower.js b/js/src/jit-test/tests/basic/testToUpperToLower.js
new file mode 100644
index 000000000..4bd78f353
--- /dev/null
+++ b/js/src/jit-test/tests/basic/testToUpperToLower.js
@@ -0,0 +1,9 @@
+function testToUpperToLower() {
+ var s = "Hello", s1, s2;
+ for (i = 0; i < 100; ++i) {
+ s1 = s.toLowerCase();
+ s2 = s.toUpperCase();
+ }
+ return s1 + s2;
+}
+assertEq(testToUpperToLower(), "helloHELLO");