Lines Matching refs:object
13 var object = {
19 assertEquals('A', object.a);
20 assertEquals('B', object.b);
21 assertEquals('C', object.c);
22 assertEquals('D', object.d);
23 assertArrayEquals(['a', 'b', 'c', 'd'], Object.keys(object));
28 var object = {
34 assertEquals('A', object.a);
35 assertEquals('B', object[1]);
36 assertEquals('C', object.c);
37 assertEquals('D', object[2]);
39 assertArrayEquals(['1', '2', 'a', 'c'], Object.keys(object));
46 var object = {
52 assertEquals('A', object.a);
53 assertEquals('B', object[sym1]);
54 assertEquals('C', object.c);
55 assertEquals('D', object[sym2]);
56 assertArrayEquals(['a', 'c'], Object.keys(object));
57 assertArrayEquals([sym1, sym2], Object.getOwnPropertySymbols(object));
75 var object = {
82 assertEquals('A', object.a);
83 assertEquals('B', object.b);
84 assertEquals('C', object.c);
85 assertEquals('D', object.d);
86 assertArrayEquals(['a', 'b', 'c', 'd'], Object.keys(object));
107 var object = {
114 assertEquals('A', object.a);
115 assertEquals('B', object[1]);
116 assertEquals('C', object.c);
117 assertEquals('D', object[2]);
119 assertArrayEquals(['1', '2', 'a', 'c'], Object.keys(object));
124 var object = {
134 assertEquals('A', object['1.2']);
135 assertEquals('B', object['1e+55']);
136 assertEquals('C', object['0.000001']);
137 assertEquals('D', object[0]);
139 // assertEquals('E', object[Infinity]);
140 // assertEquals('F', object[-Infinity]);
141 assertEquals('G', object[NaN]);
146 var object = {
151 assertEquals('A', object.a);
153 object = {
161 assertEquals('B', object.b);
163 object = {
174 assertEquals('C', object.c);
176 object = {
184 assertEquals('D', object.d);
190 var object = {
195 object.a = 'A';
199 object = {
207 object.b = 'B';
211 object = {
222 object.c = 'C';
226 object = {
234 object.d = 'D';
244 var object = {
248 assertEquals(2, object.a);
254 var object = {
257 assertEquals(proto, Object.getPrototypeOf(object));
259 object = {
262 assertEquals(proto, Object.getPrototypeOf(object));
264 object = {
267 assertEquals(Object.prototype, Object.getPrototypeOf(object));
268 assertEquals(proto, object.__proto__);
269 assertTrue(object.hasOwnProperty('__proto__'));
271 object = {
275 assertEquals('X', object.x);
276 assertEquals(proto, Object.getPrototypeOf(object));
319 var object = {
329 assertEquals(42, object.outer);
330 assertEquals(43, object.outer2);
331 assertEquals('A', object.inner.a);
332 assertEquals('B', object.inner.b);
333 assertEquals('C', object.inner.c);
334 assertEquals('D', object.inner.d);
335 var object = {
348 assertEquals(42, object.outer);
349 assertEquals(45, object.outer2);
350 assertEquals(43, object.array[0]);
351 assertEquals(44, object.array[2]);
352 assertEquals('A', object.array[1].a);
353 assertEquals('B', object.array[1].b);
354 assertEquals('C', object.array[1].c);
355 assertEquals('D', object.array[1].d);