js/src/tests/test262/intl402/ch10/10.2/10.2.1.js

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

     1 // Copyright 2012 Mozilla Corporation. All rights reserved.
     2 // This code is governed by the license found in the LICENSE file.
     4 /**
     5  * @description Tests that Intl.Collator.prototype has the required attributes.
     6  * @author Norbert Lindenberg
     7  */
     9 var desc = Object.getOwnPropertyDescriptor(Intl.Collator, "prototype");
    10 if (desc === undefined) {
    11     $ERROR("Intl.Collator.prototype is not defined.");
    12 }
    13 if (desc.writable) {
    14     $ERROR("Intl.Collator.prototype must not be writable.");
    15 }
    16 if (desc.enumerable) {
    17     $ERROR("Intl.Collator.prototype must not be enumerable.");
    18 }
    19 if (desc.configurable) {
    20     $ERROR("Intl.Collator.prototype must not be configurable.");
    21 }

mercurial