aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/intl402/ch12/12.2/12.2.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/suite/intl402/ch12/12.2/12.2.js')
-rw-r--r--test/suite/intl402/ch12/12.2/12.2.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/suite/intl402/ch12/12.2/12.2.js b/test/suite/intl402/ch12/12.2/12.2.js
new file mode 100644
index 000000000..92c40c656
--- /dev/null
+++ b/test/suite/intl402/ch12/12.2/12.2.js
@@ -0,0 +1,24 @@
+// Copyright 2012 Google Inc. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/**
+ * @path intl402/ch12/12.2/12.2.js
+ * @description Tests that the Intl.NumberFormat constructor has a length
+ * property that equals 2.
+ * @author: Roozbeh Pournader
+ */
+
+var testcase = function() {
+ "use strict";
+
+ if (!Intl.NumberFormat.hasOwnProperty('length')) {
+ $ERROR('Intl.NumberFormat has no length property');
+ }
+
+ if (Intl.NumberFormat.length != 2) {
+ $ERROR('Intl.NumberFormat.length is not 2.');
+ }
+
+ return true;
+}
+runTestCase(testcase);