Lines Matching refs:assertEquals
33 assertEquals("Foo", foo);
34 assertEquals("F", foo[0]);
35 assertEquals("o", foo[1]);
36 assertEquals("o", foo[2]);
40 assertEquals("F", foo[0]);
41 assertEquals("o", foo[1]);
42 assertEquals("o", foo[2]);
43 assertEquals("F", (foo[0] + "BarBazQuuxFooBarQuux")[0]);
46 assertEquals("F", foo["0" + ""], "string index");
47 assertEquals("o", foo["1"], "string index");
48 assertEquals("o", foo["2"], "string index");
50 assertEquals("undefined", typeof(foo[3]), "out of range");
52 assertEquals("undefined", typeof(foo[-1]), "known failure in SpiderMonkey 1.5");
53 assertEquals("undefined", typeof(foo[-2]), "negative index");
56 assertEquals("Foo", foo);
59 assertEquals("Foo", foo);
60 assertEquals("undefined", typeof(foo[3]), "out of range");
61 assertEquals("undefined", typeof(foo[-2]), "negative index");
64 assertEquals(Object("foo"), S);
65 assertEquals("f", S[0], "string object");
66 assertEquals("f", S["0"], "string object");
68 assertEquals("f", S[0], "string object");
69 assertEquals("f", S["0"], "string object");
71 assertEquals('spider', S[-2]);
73 assertEquals('monkey', S[3]);
75 assertEquals("Fu", S.foo);
81 assertEquals("f", S[0], "string object");
82 assertEquals("f", S["0"], "string object");
84 assertEquals(true, 0 in S, "0 in");
85 assertEquals(false, -1 in S, "-1 in");
86 assertEquals(true, 2 in S, "2 in");
87 assertEquals(true, 3 in S, "3 in");
88 assertEquals(false, 4 in S, "3 in");
90 assertEquals(true, "0" in S, '"0" in');
91 assertEquals(false, "-1" in S, '"-1" in');
92 assertEquals(true, "2" in S, '"2" in');
93 assertEquals(true, "3" in S, '"3" in');
94 assertEquals(false, "4" in S, '"3" in');
96 assertEquals(true, S.hasOwnProperty(0), "0 hasOwnProperty");
97 assertEquals(false, S.hasOwnProperty(-1), "-1 hasOwnProperty");
98 assertEquals(true, S.hasOwnProperty(2), "2 hasOwnProperty");
99 assertEquals(true, S.hasOwnProperty(3), "3 hasOwnProperty");
100 assertEquals(false, S.hasOwnProperty(4), "3 hasOwnProperty");
102 assertEquals(true, S.hasOwnProperty("0"), '"0" hasOwnProperty');
103 assertEquals(false, S.hasOwnProperty("-1"), '"-1" hasOwnProperty');
104 assertEquals(true, S.hasOwnProperty("2"), '"2" hasOwnProperty');
105 assertEquals(true, S.hasOwnProperty("3"), '"3" hasOwnProperty');
106 assertEquals(false, S.hasOwnProperty("4"), '"3" hasOwnProperty');
108 assertEquals(true, "foo".hasOwnProperty(0), "foo 0 hasOwnProperty");
109 assertEquals(false, "foo".hasOwnProperty(-1), "foo -1 hasOwnProperty");
110 assertEquals(true, "foo".hasOwnProperty(2), "foo 2 hasOwnProperty");
111 assertEquals(false, "foo".hasOwnProperty(4), "foo 3 hasOwnProperty");
113 assertEquals(true, "foo".hasOwnProperty("0"), 'foo "0" hasOwnProperty');
114 assertEquals(false, "foo".hasOwnProperty("-1"), 'foo "-1" hasOwnProperty');
115 assertEquals(true, "foo".hasOwnProperty("2"), 'foo "2" hasOwnProperty');
116 assertEquals(false, "foo".hasOwnProperty("4"), 'foo "3" hasOwnProperty');
129 assertEquals("undefined", typeof(S[3]));
130 assertEquals(false, 3 in S);
131 assertEquals(false, "3" in S);
134 assertEquals(Object(43), N);
136 assertEquals("Alpha", N[-2]);
138 assertEquals("Zappa", N[0]);
139 assertEquals("Zappa", N["0"]);
143 assertEquals('v', A[0]);
144 assertEquals('v', A2);
148 assertEquals('O', S[0]);
149 assertEquals('o', S2);
153 assertEquals('T', s[0]);
154 assertEquals('t', s2);
157 assertEquals('o', S[-2]);
158 assertEquals('o', S2);
161 assertEquals('undefined', typeof(s[-2]));
162 assertEquals('t', s2);
174 assertEquals(alpha[i], alphaStr[i]);
175 assertEquals(String.fromCharCode(i), alphaStr[i]);
186 assertEquals(expected, actual);
196 assertEquals(expected, actual);
207 assertEquals(expected, actual);
218 assertEquals(expected, actual);
229 assertEquals(expected, actual);
240 assertEquals(expected, actual);
250 assertEquals(expected, actual);
258 assertEquals(expected, actual);