Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / built-ins / Array / S15.4.1_A1.3_T1.js
blobcbb64bf16612bd91f9374e46f853565cd61b62d9
1 // Copyright 2009 the Sputnik authors.  All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 info: |
6     This description of Array constructor applies if and only if
7     the Array constructor is given no arguments or at least two arguments
8 es5id: 15.4.1_A1.3_T1
9 description: Checking case when Array constructor is given one argument
10 ---*/
12 var x = Array(2);
14 assert.notSameValue(x.length, 1, 'The value of x.length is not 1');
15 assert.notSameValue(x[0], 2, 'The value of x[0] is not 2');
17 reportCompare(0, 0);