Lines Matching refs:Function
32 function TestValidSetCalls(m) {
33 assertDoesNotThrow(function () { m.add(new Object) });
34 assertDoesNotThrow(function () { m.has(new Object) });
35 assertDoesNotThrow(function () { m.delete(new Object) });
41 function TestValidMapCalls(m) {
42 assertDoesNotThrow(function () { m.get(new Object) });
43 assertDoesNotThrow(function () { m.set(new Object) });
44 assertDoesNotThrow(function () { m.has(new Object) });
45 assertDoesNotThrow(function () { m.delete(new Object) });
52 function TestInvalidCalls(m) {
53 assertThrows(function () { m.get(undefined) }, TypeError);
54 assertThrows(function () { m.set(undefined, 0) }, TypeError);
55 assertThrows(function () { m.get(null) }, TypeError);
56 assertThrows(function () { m.set(null, 0) }, TypeError);
57 assertThrows(function () { m.get(0) }, TypeError);
58 assertThrows(function () { m.set(0, 0) }, TypeError);
59 assertThrows(function () { m.get('a-key') }, TypeError);
60 assertThrows(function () { m.set('a-key', 0) }, TypeError);
66 function TestSet(set, key) {
73 function TestSetBehavior(set) {
89 function TestMapping(map, key, value) {
93 function TestMapBehavior1(m) {
103 function TestMapBehavior2(m) {
118 function TestQuery(m) {
132 function TestDelete(m) {
145 function TestGC1(m) {
156 function TestGC2(m) {
173 function TestEnumerable(func) {
174 function props(x) {
189 function TestArbitrary(m) {
190 function TestProperty(map, property, value) {
232 assertTrue(Set.prototype.add instanceof Function)
233 assertTrue(Set.prototype.has instanceof Function)
234 assertTrue(Set.prototype.delete instanceof Function)
240 assertTrue(Map.prototype.set instanceof Function)
241 assertTrue(Map.prototype.get instanceof Function)
242 assertTrue(Map.prototype.has instanceof Function)
243 assertTrue(Map.prototype.delete instanceof Function)
249 assertTrue(WeakMap.prototype.set instanceof Function)
250 assertTrue(WeakMap.prototype.get instanceof Function)
251 assertTrue(WeakMap.prototype.has instanceof Function)
252 assertTrue(WeakMap.prototype.delete instanceof Function)
295 function TestBogusReceivers(testSet) {
303 assertThrows(function () { func.call(receivers[k], {}) }, TypeError);