summaryrefslogtreecommitdiff
path: root/test/suite/intl402/ch11/11.2/11.2.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/suite/intl402/ch11/11.2/11.2.js')
-rw-r--r--test/suite/intl402/ch11/11.2/11.2.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/suite/intl402/ch11/11.2/11.2.js b/test/suite/intl402/ch11/11.2/11.2.js
new file mode 100644
index 000000000..8094d3bd1
--- /dev/null
+++ b/test/suite/intl402/ch11/11.2/11.2.js
@@ -0,0 +1,17 @@
+// Copyright 2012 Google Inc. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/**
+ * @description Tests that the Intl.NumberFormat constructor has a length
+ * property that equals 2.
+ * @author: Roozbeh Pournader
+ */
+
+if (!Intl.NumberFormat.hasOwnProperty('length')) {
+ $ERROR('Intl.NumberFormat has no length property');
+}
+
+if (Intl.NumberFormat.length != 2) {
+ $ERROR('Intl.NumberFormat.length is not 2.');
+}
+