summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A2_T1.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A2_T1.js')
-rw-r--r--js/src/tests/test262/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A2_T1.js36
1 files changed, 36 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A2_T1.js b/js/src/tests/test262/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A2_T1.js
new file mode 100644
index 0000000000..7dfdb60f3e
--- /dev/null
+++ b/js/src/tests/test262/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A2_T1.js
@@ -0,0 +1,36 @@
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+info: |
+ String.prototype.toLocaleLowerCase() return a string, but not a String
+ object
+es5id: 15.5.4.17_A2_T1
+description: Checking returned result
+---*/
+
+//////////////////////////////////////////////////////////////////////////////
+//CHECK#1
+if ("Hello, WoRlD!".toLocaleLowerCase() !== "hello, world!") {
+ throw new Test262Error('#1: "Hello, WoRlD!".toLocaleLowerCase() === "hello, world!". Actual: ' + ("Hello, WoRlD!".toLocaleLowerCase()));
+}
+//
+//////////////////////////////////////////////////////////////////////////////
+
+//////////////////////////////////////////////////////////////////////////////
+//CHECK#2
+if ("Hello, WoRlD!".toLocaleLowerCase() !== String("hello, world!")) {
+ throw new Test262Error('#2: "Hello, WoRlD!".toLocaleLowerCase() === String("hello, world!"). Actual: ' + ("Hello, WoRlD!".toLocaleLowerCase()));
+}
+//
+//////////////////////////////////////////////////////////////////////////////
+
+//////////////////////////////////////////////////////////////////////////////
+//CHECK#3
+if ("Hello, WoRlD!".toLocaleLowerCase() === new String("hello, world!")) {
+ throw new Test262Error('#3: "Hello, WoRlD!".toLocaleLowerCase() !== new String("hello, world!")');
+}
+//
+//////////////////////////////////////////////////////////////////////////////
+
+reportCompare(0, 0);