diff options
Diffstat (limited to 'test/suite/intl402/ch12')
-rw-r--r-- | test/suite/intl402/ch12/12.1/12.1_L15.js | 14 | ||||
-rw-r--r-- | test/suite/intl402/ch12/12.2/12.2.1.js | 26 | ||||
-rw-r--r-- | test/suite/intl402/ch12/12.2/12.2.2_L15.js | 14 | ||||
-rw-r--r-- | test/suite/intl402/ch12/12.2/12.2.js | 17 | ||||
-rw-r--r-- | test/suite/intl402/ch12/12.3/12.3.2_1_a_L15.js | 14 | ||||
-rw-r--r-- | test/suite/intl402/ch12/12.3/12.3.2_L15.js | 14 | ||||
-rw-r--r-- | test/suite/intl402/ch12/12.3/12.3.3_L15.js | 14 | ||||
-rw-r--r-- | test/suite/intl402/ch12/12.3/12.3_L15.js | 14 |
8 files changed, 84 insertions, 43 deletions
diff --git a/test/suite/intl402/ch12/12.1/12.1_L15.js b/test/suite/intl402/ch12/12.1/12.1_L15.js new file mode 100644 index 000000000..46c4f5f50 --- /dev/null +++ b/test/suite/intl402/ch12/12.1/12.1_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.DateTimeFormat + * 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.DateTimeFormat, true, true, ["supportedLocalesOf"], 0); + diff --git a/test/suite/intl402/ch12/12.2/12.2.1.js b/test/suite/intl402/ch12/12.2/12.2.1.js deleted file mode 100644 index 4ec28c5d3..000000000 --- a/test/suite/intl402/ch12/12.2/12.2.1.js +++ /dev/null @@ -1,26 +0,0 @@ -// 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.DateTimeFormat prototype object exists and - * is not writable, enumerable, or configurable. - * @author: Roozbeh Pournader - */ - -var desc; - -if (!Intl.DateTimeFormat.hasOwnProperty('prototype')) { - $ERROR('Intl.DateTimeFormat has no prototype property'); -} - -desc = Object.getOwnPropertyDescriptor(Intl.DateTimeFormat, 'prototype'); -if (desc.writable === true) { - $ERROR('Intl.DateTimeFormat.prototype is writable.'); -} -if (desc.enumerable === true) { - $ERROR('Intl.DateTimeFormat.prototype is enumerable.'); -} -if (desc.configurable === true) { - $ERROR('Intl.DateTimeFormat.prototype is configurable.'); -} - diff --git a/test/suite/intl402/ch12/12.2/12.2.2_L15.js b/test/suite/intl402/ch12/12.2/12.2.2_L15.js new file mode 100644 index 000000000..8b21df1fd --- /dev/null +++ b/test/suite/intl402/ch12/12.2/12.2.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 Intl.DateTimeFormat.supportedLocalesOf + * 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.DateTimeFormat.supportedLocalesOf, true, false, [], 1); + diff --git a/test/suite/intl402/ch12/12.2/12.2.js b/test/suite/intl402/ch12/12.2/12.2.js deleted file mode 100644 index 59785479a..000000000 --- a/test/suite/intl402/ch12/12.2/12.2.js +++ /dev/null @@ -1,17 +0,0 @@ -// 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.DateTimeFormat constructor has a length - * property that equals 2. - * @author: Roozbeh Pournader - */ - -if (!Intl.DateTimeFormat.hasOwnProperty('length')) { - $ERROR('Intl.DateTimeFormat has no length property'); -} - -if (Intl.DateTimeFormat.length != 2) { - $ERROR('Intl.DateTimeFormat.length is not 2.'); -} - diff --git a/test/suite/intl402/ch12/12.3/12.3.2_1_a_L15.js b/test/suite/intl402/ch12/12.3/12.3.2_1_a_L15.js new file mode 100644 index 000000000..2fb768d09 --- /dev/null +++ b/test/suite/intl402/ch12/12.3/12.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.DateTimeFormat.prototype.format + * 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.DateTimeFormat().format, true, false, [], 0); + diff --git a/test/suite/intl402/ch12/12.3/12.3.2_L15.js b/test/suite/intl402/ch12/12.3/12.3.2_L15.js new file mode 100644 index 000000000..73d309e26 --- /dev/null +++ b/test/suite/intl402/ch12/12.3/12.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.DateTimeFormat.prototype.format + * 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.DateTimeFormat.prototype, "format").get , true, false, [], 0); + diff --git a/test/suite/intl402/ch12/12.3/12.3.3_L15.js b/test/suite/intl402/ch12/12.3/12.3.3_L15.js new file mode 100644 index 000000000..1b4079ebe --- /dev/null +++ b/test/suite/intl402/ch12/12.3/12.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.DateTimeFormat.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.DateTimeFormat.prototype.resolvedOptions, true, false, [], 0); + diff --git a/test/suite/intl402/ch12/12.3/12.3_L15.js b/test/suite/intl402/ch12/12.3/12.3_L15.js new file mode 100644 index 000000000..55f1c16ca --- /dev/null +++ b/test/suite/intl402/ch12/12.3/12.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.DateTimeFormat.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.DateTimeFormat.prototype, false, false, ["constructor", "format", "resolvedOptions"]); + |