• Home
  • Raw
  • Download

Lines Matching refs:ev

40   const ev = new Event('foo');  constant
41 strictEqual(ev.type, 'foo');
42 strictEqual(ev.cancelable, false);
43 strictEqual(ev.defaultPrevented, false);
44 strictEqual(typeof ev.timeStamp, 'number');
47 deepStrictEqual(ev.composedPath(), []);
48 strictEqual(ev.returnValue, true);
49 strictEqual(ev.bubbles, false);
50 strictEqual(ev.composed, false);
51 strictEqual(ev.isTrusted, false);
52 strictEqual(ev.eventPhase, 0);
53 strictEqual(ev.cancelBubble, false);
56 ev.preventDefault();
57 strictEqual(ev.defaultPrevented, false);
74 const ev = new Event('foo'); constant
75 strictEqual(ev.cancelBubble, false);
76 ev.cancelBubble = true;
77 strictEqual(ev.cancelBubble, true);
80 const ev = new Event('foo'); constant
81 strictEqual(ev.cancelBubble, false);
82 ev.stopPropagation();
83 strictEqual(ev.cancelBubble, true);
86 const ev = new Event('foo'); constant
87 strictEqual(ev.cancelBubble, false);
88 ev.cancelBubble = 'some-truthy-value';
89 strictEqual(ev.cancelBubble, true);
97 const ev = new Event('foo', {}, {}); constant
98 strictEqual(ev.type, 'foo');
101 const ev = new Event('foo'); constant
102 strictEqual(ev.cancelBubble, false);
103 ev.cancelBubble = true;
104 strictEqual(ev.cancelBubble, true);
107 const ev = new Event('foo'); constant
108 strictEqual(ev.cancelBubble, false);
109 ev.stopPropagation();
110 strictEqual(ev.cancelBubble, true);
113 const ev = new Event('foo'); constant
114 strictEqual(ev.cancelBubble, false);
115 ev.cancelBubble = 'some-truthy-value';
116 strictEqual(ev.cancelBubble, true);
119 const ev = new Event('foo', { cancelable: true }); constant
120 strictEqual(ev.type, 'foo');
121 strictEqual(ev.cancelable, true);
122 strictEqual(ev.defaultPrevented, false);
124 ev.preventDefault();
125 strictEqual(ev.defaultPrevented, true);
129 const ev = new Event('foo'); constant
130 deepStrictEqual(Object.keys(ev), ['isTrusted']);
159 const ev = new SubEvent('foo'); constant
161 const fn = common.mustCall((event) => strictEqual(event, ev));
163 eventTarget.dispatchEvent(ev);
220 const ev = common.mustCall((event) => { constant
226 eventTarget.addEventListener('foo', ev, { once: true });
435 const ev = new Event('toString'); constant
438 target.dispatchEvent(ev);
442 const ev = new Event('__proto__'); constant
445 target.dispatchEvent(ev);