summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Boolean/prototype/S15.6.3.1_A1.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/Boolean/prototype/S15.6.3.1_A1.js')
-rw-r--r--js/src/tests/test262/built-ins/Boolean/prototype/S15.6.3.1_A1.js28
1 files changed, 28 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/Boolean/prototype/S15.6.3.1_A1.js b/js/src/tests/test262/built-ins/Boolean/prototype/S15.6.3.1_A1.js
new file mode 100644
index 0000000000..506250ab6f
--- /dev/null
+++ b/js/src/tests/test262/built-ins/Boolean/prototype/S15.6.3.1_A1.js
@@ -0,0 +1,28 @@
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+info: |
+ The initial value of Boolean.prototype is the Boolean
+ prototype object
+esid: sec-boolean.prototype
+description: Checking Boolean.prototype property
+---*/
+
+assert.sameValue(
+ typeof Boolean.prototype,
+ "object",
+ 'The value of `typeof Boolean.prototype` is expected to be "object"'
+);
+
+assert(Boolean.prototype == false, 'The value of Boolean.prototype is expected to be false');
+
+delete Boolean.prototype.toString;
+
+assert.sameValue(
+ Boolean.prototype.toString(),
+ "[object Boolean]",
+ 'Boolean.prototype.toString() must return "[object Boolean]"'
+);
+
+reportCompare(0, 0);