aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/intl402/ch12/12.2/12.2.js
blob: 59785479a1deb5eee89d6a1d0033b3739863afe9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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.DateTimeFormat constructor has a length
 * property that equals 2.
 * @author: Roozbeh Pournader
 */

if (!Intl.DateTimeFormat.hasOwnProperty('length')) {
    $ERROR('Intl.DateTimeFormat has no length property');
}
    
if (Intl.DateTimeFormat.length != 2) {
    $ERROR('Intl.DateTimeFormat.length is not 2.');
}