summaryrefslogtreecommitdiff
path: root/test/suite/intl402/ch10/10.2/10.2.js
diff options
context:
space:
mode:
authorNorbert Lindenberg <ecmascript@lindenbergsoftware.com>2012-08-22 18:06:31 -0700
committerNorbert Lindenberg <ecmascript@lindenbergsoftware.com>2012-08-22 18:06:31 -0700
commit11b493d63e6aa3c05d60210d67e122a8904a293d (patch)
treecbc970bfb21140d7c5aa45ee6a6810e78e3429e7 /test/suite/intl402/ch10/10.2/10.2.js
parentb8c591008f671c8675d46e60c39704d9098811a7 (diff)
downloadtest262-11b493d63e6aa3c05d60210d67e122a8904a293d.tar.gz
Moved Google tests from ch11 to ch10.
--HG-- rename : test/suite/intl402/ch11/11.2/11.2.1.js => test/suite/intl402/ch10/10.2/10.2.1.js rename : test/suite/intl402/ch11/11.2/11.2.2.js => test/suite/intl402/ch10/10.2/10.2.2.js rename : test/suite/intl402/ch11/11.2/11.2.3.js => test/suite/intl402/ch10/10.2/10.2.3.js rename : test/suite/intl402/ch11/11.2/11.2.js => test/suite/intl402/ch10/10.2/10.2.js rename : test/suite/intl402/ch11/11.3/11.3.1.js => test/suite/intl402/ch10/10.3/10.3.1.js rename : test/suite/intl402/ch11/11.3/11.3.js => test/suite/intl402/ch10/10.3/10.3.js
Diffstat (limited to 'test/suite/intl402/ch10/10.2/10.2.js')
-rw-r--r--test/suite/intl402/ch10/10.2/10.2.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/suite/intl402/ch10/10.2/10.2.js b/test/suite/intl402/ch10/10.2/10.2.js
new file mode 100644
index 000000000..2a9c073e9
--- /dev/null
+++ b/test/suite/intl402/ch10/10.2/10.2.js
@@ -0,0 +1,16 @@
+// 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.Collator constructor has a length
+ * property that equals 2.
+ */
+
+if (!Intl.Collator.hasOwnProperty('length')) {
+ $ERROR('Intl.Collator has no length property');
+}
+
+if (Intl.Collator.length != 2) {
+ $ERROR('Intl.Collator.length is not 2.');
+}
+