diff options
Diffstat (limited to 'js/src/tests/test262/intl402/Intl/builtin.js')
-rw-r--r-- | js/src/tests/test262/intl402/Intl/builtin.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/js/src/tests/test262/intl402/Intl/builtin.js b/js/src/tests/test262/intl402/Intl/builtin.js new file mode 100644 index 0000000000..7641f06945 --- /dev/null +++ b/js/src/tests/test262/intl402/Intl/builtin.js @@ -0,0 +1,21 @@ +// Copyright 2012 Mozilla Corporation. All rights reserved. +// This code is governed by the license found in the LICENSE file. + +/*--- +esid: intl-object +description: > + Tests that Intl meets the requirements for built-in objects + defined by the introduction of chapter 17 of the ECMAScript + Language Specification. +author: Norbert Lindenberg +---*/ + +assert(Object.isExtensible(Intl), "Built-in objects must be extensible."); + +assert.sameValue(Object.getPrototypeOf(Intl), Object.prototype, + "The [[Prototype]] of Intl is %ObjectPrototype%."); + +assert.sameValue(this.Intl, Intl, + "%Intl% is accessible as a property of the global object."); + +reportCompare(0, 0); |