Lines Matching refs:Array
25 // 15.4 Array Objects
28 shouldBe("Array().length", "0");
29 shouldBe("(new Array()).length", "0");
30 shouldBe("(new Array(3)).length", "3");
31 shouldBe("(new Array(11, 22)).length", "2");
32 shouldBe("(new Array(11, 22))[0]", "11");
33 shouldBe("Array(11, 22)[1]", "22");
34 shouldBeUndefined("(new Array(11, 22))[3]");
35 shouldBe("String(new Array(11, 22))", "'11,22'");
58 new Array(Infinity);
68 shouldBe("Array().toString()", "''");
69 shouldBe("Array(3).toString()", "',,'");
70 shouldBe("Array(11, 22).toString()", "'11,22'");
71 shouldBe("String(Array(11, 22).concat(33))", "'11,22,33'");
72 shouldBe("String(Array(2).concat(33, 44))", "',,33,44'");
73 shouldBe("String(Array(2).concat(Array(2)))", "',,,'");
74 shouldBe("String(Array(11,22).concat(Array(33,44)))", "'11,22,33,44'");
75 shouldBe("String(Array(1,2).concat(3,Array(4,5)))", "'1,2,3,4,5'");
76 shouldBe("var a = new Array(1,2,3); delete a[1]; String(a.concat(4))", "'1,,3,4'");
85 shouldBe("(new Array('a')).length", "1");
86 shouldBe("(new Array('a'))[0]", "'a'");
87 shouldBeUndefined("(new Array('a'))[1]");
89 shouldBe("Array('a').length", "1");
90 shouldBe("Array('a')[0]", "'a'");
92 shouldBe("String(Array())", "''");
93 shouldBe("String(Array('a','b'))", "'a,b'");
116 shouldBe("forInSum(Array())", "''");
117 shouldBe("forInSum(Array('a'))", "'a'");
149 // Array.unshift()
155 // Array.splice()
159 var arr = new Array();
161 // 2^32 should not be treated as a valid array index, i.e.
162 // setting the property on the array should not result in
176 // Floating point numbers also should not be treated as valid array indices.
189 arr = new Array('a','b','c');
191 var propnames = new Array();