From 8cad7d03cea197bd374b35f4af95a58c7b583538 Mon Sep 17 00:00:00 2001 From: Norbert Lindenberg Date: Sun, 26 Aug 2012 20:48:49 -0700 Subject: =?UTF-8?q?Added=20tests=20for=20requirements=20imposed=20on=20the?= =?UTF-8?q?=20built-in=20objects=20of=20the=20ECMAScript=20Internationaliz?= =?UTF-8?q?ation=20API=20Specification=20by=20the=20introduction=20of=20ch?= =?UTF-8?q?apter=2015=20of=20the=20ECMAScript=20Language=20Specification.?= =?UTF-8?q?=20-=20Removed=20some=20old=20tests=20that=20were=20redundant?= =?UTF-8?q?=20with=20the=20new=20tests.=20-=20Added=20testBuiltInObject.js?= =?UTF-8?q?=20as=20standard=20include=20for=20all=20console=20tests=20in?= =?UTF-8?q?=20test262.py=20=E2=80=93=20see=20related=20bug=20574.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/suite/intl402/ch10/10.3/10.3.2_1_a_L15.js | 14 ++++++++++++++ test/suite/intl402/ch10/10.3/10.3.2_L15.js | 14 ++++++++++++++ test/suite/intl402/ch10/10.3/10.3.3_L15.js | 14 ++++++++++++++ test/suite/intl402/ch10/10.3/10.3_L15.js | 14 ++++++++++++++ 4 files changed, 56 insertions(+) create mode 100644 test/suite/intl402/ch10/10.3/10.3.2_1_a_L15.js create mode 100644 test/suite/intl402/ch10/10.3/10.3.2_L15.js create mode 100644 test/suite/intl402/ch10/10.3/10.3.3_L15.js create mode 100644 test/suite/intl402/ch10/10.3/10.3_L15.js (limited to 'test/suite/intl402/ch10/10.3') diff --git a/test/suite/intl402/ch10/10.3/10.3.2_1_a_L15.js b/test/suite/intl402/ch10/10.3/10.3.2_1_a_L15.js new file mode 100644 index 000000000..3d49601db --- /dev/null +++ b/test/suite/intl402/ch10/10.3/10.3.2_1_a_L15.js @@ -0,0 +1,14 @@ +// Copyright 2012 Mozilla Corporation. All rights reserved. +// This code is governed by the license found in the LICENSE file. + +/** + * @description Tests that the function returned by Intl.Collator.prototype.compare + * meets the requirements for built-in objects defined by the introduction of + * chapter 15 of the ECMAScript Language Specification. + * @author Norbert Lindenberg + */ + +$INCLUDE("testBuiltInObject.js"); + +testBuiltInObject(new Intl.Collator().compare, true, false, [], 2); + diff --git a/test/suite/intl402/ch10/10.3/10.3.2_L15.js b/test/suite/intl402/ch10/10.3/10.3.2_L15.js new file mode 100644 index 000000000..5845ea3ca --- /dev/null +++ b/test/suite/intl402/ch10/10.3/10.3.2_L15.js @@ -0,0 +1,14 @@ +// Copyright 2012 Mozilla Corporation. All rights reserved. +// This code is governed by the license found in the LICENSE file. + +/** + * @description Tests that the getter for Intl.Collator.prototype.compare + * meets the requirements for built-in objects defined by the introduction of + * chapter 15 of the ECMAScript Language Specification. + * @author Norbert Lindenberg + */ + +$INCLUDE("testBuiltInObject.js"); + +testBuiltInObject(Object.getOwnPropertyDescriptor(Intl.Collator.prototype, "compare").get , true, false, [], 0); + diff --git a/test/suite/intl402/ch10/10.3/10.3.3_L15.js b/test/suite/intl402/ch10/10.3/10.3.3_L15.js new file mode 100644 index 000000000..718cc9fea --- /dev/null +++ b/test/suite/intl402/ch10/10.3/10.3.3_L15.js @@ -0,0 +1,14 @@ +// Copyright 2012 Mozilla Corporation. All rights reserved. +// This code is governed by the license found in the LICENSE file. + +/** + * @description Tests that Intl.Collator.prototype.resolvedOptions + * meets the requirements for built-in objects defined by the introduction of + * chapter 15 of the ECMAScript Language Specification. + * @author Norbert Lindenberg + */ + +$INCLUDE("testBuiltInObject.js"); + +testBuiltInObject(Intl.Collator.prototype.resolvedOptions, true, false, [], 0); + diff --git a/test/suite/intl402/ch10/10.3/10.3_L15.js b/test/suite/intl402/ch10/10.3/10.3_L15.js new file mode 100644 index 000000000..60719736c --- /dev/null +++ b/test/suite/intl402/ch10/10.3/10.3_L15.js @@ -0,0 +1,14 @@ +// Copyright 2012 Mozilla Corporation. All rights reserved. +// This code is governed by the license found in the LICENSE file. + +/** + * @description Tests that Intl.Collator.prototype + * meets the requirements for built-in objects defined by the introduction of + * chapter 15 of the ECMAScript Language Specification. + * @author Norbert Lindenberg + */ + +$INCLUDE("testBuiltInObject.js"); + +testBuiltInObject(Intl.Collator.prototype, false, false, ["constructor", "compare", "resolvedOptions"]); + -- cgit v1.2.3