Index: test/intl/toStringTag.js |
diff --git a/test/intl/toStringTag.js b/test/intl/toStringTag.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9aecc4464c8ebbf67d175dde5128c222b48fa939 |
--- /dev/null |
+++ b/test/intl/toStringTag.js |
@@ -0,0 +1,26 @@ |
+// Copyright 2016 the V8 project authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+let descriptor; |
+ |
+descriptor = Object.getOwnPropertyDescriptor(Intl.DateTimeFormat.prototype, Symbol.toStringTag); |
Yang
2016/12/21 13:43:39
80char limit
|
+ |
+assertEquals("Object", descriptor.value); |
+assertFalse(descriptor.writable); |
+assertFalse(descriptor.enumerable); |
+assertTrue(descriptor.configurable); |
+ |
+descriptor = Object.getOwnPropertyDescriptor(Intl.NumberFormat.prototype, Symbol.toStringTag); |
+ |
+assertEquals("Object", descriptor.value); |
+assertFalse(descriptor.writable); |
+assertFalse(descriptor.enumerable); |
+assertTrue(descriptor.configurable); |
+ |
+descriptor = Object.getOwnPropertyDescriptor(Intl.Collator.prototype, Symbol.toStringTag); |
+ |
+assertEquals("Object", descriptor.value); |
+assertFalse(descriptor.writable); |
+assertFalse(descriptor.enumerable); |
+assertTrue(descriptor.configurable); |