blob: 570f4e1fefed14618d16166f461cee761fb3c345 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
// Copyright 2012 Google Inc. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @path intl402/ch08/8.1/8.1.js
* @description Tests that Intl object has proper constructors.
*/
function testcase() {
"use strict";
var passed = false;
if (Intl === undefined) {
$ERROR('Intl object is undefined.');
}
if (typeof Intl.LocaleList !== 'function') {
$ERROR('Intl.LocaleList is not a function.')
}
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.')
}
passed = true;
return passed;
}
runTestCase(testcase);
|