Lines Matching refs:entries
55 var entries = mapMirror.entries(); variable
56 assertEquals(1, entries.length);
57 assertSame(o2, entries[0].key);
58 assertEquals(22, entries[0].value);
64 entries = mapMirror.entries();
65 assertEquals(3, entries.length);
66 assertSame(o1, entries[0].key);
67 assertEquals(33, entries[0].value);
68 assertSame(o3, entries[1].key);
69 assertSame(o2, entries[1].value);
70 assertEquals(undefined, entries[2].key);
71 assertEquals(44, entries[2].value);
73 assertEquals(3, mapMirror.entries(0).length);
74 assertEquals(1, mapMirror.entries(1).length);
75 assertEquals(2, mapMirror.entries(2).length);
100 assertTrue(weakMapMirror.entries().length <= 5);
104 var entries = weakMapMirror.entries();
105 assertEquals(2, entries.length);
106 assertEquals(2, weakMapMirror.entries(0).length);
107 assertEquals(1, weakMapMirror.entries(1).length);
109 for (var i = 0; i < entries.length; i++) {
110 if (Object.is(entries[i].key, o1)) {
111 assertEquals(11, entries[i].value);
114 if (Object.is(entries[i].key, o3)) {
115 assertEquals(33, entries[i].value);