aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/intl402/ch08/8.1/8.1.js
blob: f9ee77111a4bb8c25113002aa8b987781b1e1034 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright 2012 Google Inc. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/**
 * @description Tests that Intl object has proper constructors.
 */

if (Intl === undefined) {
    $ERROR('Intl object is undefined.');
}

if (typeof Intl.Collator !== 'function') {
    $ERROR('Intl.Collator is not a function.');
}

if (typeof Intl.NumberFormat !== 'function') {
    $ERROR('Intl.NumberFormat is not a function.');
}

if (typeof Intl.DateTimeFormat !== 'function') {
    $ERROR('Intl.DateTimeFormat is not a function.');
}