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

Unified Diff: test/intl/assert.js

Issue 2273953003: Add support for DateTimeFormat.formatToParts (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: update test262.status Created 4 years, 3 months 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/v8.gyp ('k') | test/intl/date-format/date-format-to-parts.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/intl/assert.js
diff --git a/test/intl/assert.js b/test/intl/assert.js
index e17615267ae327ea25b60db0a67e99d11fbb6a49..26405e8e9e1665a3d859dac2e420191150112c73 100644
--- a/test/intl/assert.js
+++ b/test/intl/assert.js
@@ -27,6 +27,14 @@
// Some methods are taken from v8/test/mjsunit/mjsunit.js
+
+function classOf(object) {
+ // Argument must not be null or undefined.
+ var string = Object.prototype.toString.call(object);
+ // String has format [object <ClassName>].
+ return string.substring(8, string.length - 1);
+}
+
/**
* Compares two objects for key/value equality.
* Returns true if they are equal, false otherwise.
« no previous file with comments | « src/v8.gyp ('k') | test/intl/date-format/date-format-to-parts.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698