Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Unified Diff: test/intl/toStringTag.js

Issue 2586763002: [intl] Create the Intl constructors to C++ (Closed)
Patch Set: Fix long lines more Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/js/i18n.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/intl/toStringTag.js
diff --git a/test/intl/toStringTag.js b/test/intl/toStringTag.js
new file mode 100644
index 0000000000000000000000000000000000000000..e215bcb73623a6e9188c46cd3b85ce7c516406fe
--- /dev/null
+++ b/test/intl/toStringTag.js
@@ -0,0 +1,29 @@
+// 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);
+
+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);
« no previous file with comments | « src/js/i18n.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698