aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/intl402/ch10/10.2/10.2.js
blob: 2a9c073e91e9b2b0ae0b89e886910c2ecf6c96cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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.');
}