Lines Matching refs:a1
30 var a1 = [1,2];
31 assertEquals("1,2", a1.toString());
32 assertEquals("1,2", a1.toLocaleString());
33 assertEquals("1,2", a1.join());
34 a1.push(a1);
35 assertEquals("1,2,", a1.toString());
36 assertEquals("1,2,", a1.toLocaleString());
37 assertEquals("1,2,", a1.join());
38 a1.push(1);
39 assertEquals("1,2,,1", a1.toString());
40 assertEquals("1,2,,1", a1.toLocaleString());
41 assertEquals("1,2,,1", a1.join());
42 a1.push(a1);
43 assertEquals("1,2,,1,", a1.toString());
44 assertEquals("1,2,,1,", a1.toLocaleString());
45 assertEquals("1,2,,1,", a1.join());
47 a1 = [1,2];
49 a1.push(a2);
50 a1.push(a2);
51 assertEquals("1,2,3,4,3,4", a1.toString());
52 assertEquals("1,2,3,4,3,4", a1.toLocaleString());
53 assertEquals("1,2,3,4,3,4", a1.join());
54 a2.push(a1);
55 assertEquals("1,2,3,4,,3,4,", a1.toString());
56 assertEquals("1,2,3,4,,3,4,", a1.toLocaleString());
57 assertEquals("1,2,3,4,,3,4,", a1.join());
59 a1 = [];
60 a2 = [a1];
61 a1.push(a2);
62 assertEquals("", a1.toString());
63 assertEquals("", a1.toLocaleString());
64 assertEquals("", a1.join());