summaryrefslogtreecommitdiff
path: root/test/suite/intl402/ch11/11.2/11.2.js
blob: 8094d3bd141f275168032efbc347768c8fef58f8 (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.NumberFormat constructor has a length
 * property that equals 2.
 * @author: Roozbeh Pournader
 */

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