|
44 | 44 |
|
45 | 45 | log = dispatchEventWithLog(shadow.target, new Event('foo', {composed: true, bubbles: true}));
|
46 | 46 |
|
47 |
| - assert_array_equals(log.length, 4, 'EventPath must contain [target, parent, shadow root, shadow host]'); |
| 47 | + assert_equals(log.length, 4, 'EventPath must contain [target, parent, shadow root, shadow host]'); |
48 | 48 | assert_array_equals(log[0], [shadow.target, shadow.target], 'EventPath[0] must be the target');
|
49 | 49 | assert_array_equals(log[1], [shadow.parent, shadow.target], 'EventPath[1] must be the parent of the target');
|
50 | 50 | assert_array_equals(log[2], [shadow.root, shadow.target], 'EventPath[2] must be the shadow root');
|
|
63 | 63 |
|
64 | 64 | log = dispatchEventWithLog(shadow.target, new Event('foo', {composed: true, bubbles: true}));
|
65 | 65 |
|
66 |
| - assert_array_equals(log.length, 7, 'EventPath must contain [target, parent, shadow root, shadow host, body, html, document]'); |
| 66 | + assert_equals(log.length, 7, 'EventPath must contain [target, parent, shadow root, shadow host, body, html, document]'); |
67 | 67 | assert_array_equals(log[0], [shadow.target, shadow.target], 'EventPath[0] must be the target');
|
68 | 68 | assert_array_equals(log[1], [shadow.parent, shadow.target], 'EventPath[1] must be the parent of the target');
|
69 | 69 | assert_array_equals(log[2], [shadow.root, shadow.target], 'EventPath[2] must be the shadow root');
|
|
101 | 101 |
|
102 | 102 | log = dispatchEventWithLog(shadow.target, new Event('bar', {composed: true, bubbles: true}));
|
103 | 103 |
|
104 |
| - assert_array_equals(log.length, 6, 'EventPath must contain [target, inner root, inner host, parent, outer root, outer host]'); |
| 104 | + assert_equals(log.length, 6, 'EventPath must contain [target, inner root, inner host, parent, outer root, outer host]'); |
105 | 105 | assert_array_equals(log[0], [shadow.target, shadow.target], 'EventPath[0] must be the target');
|
106 | 106 | assert_array_equals(log[1], [shadow.innerRoot, shadow.target], 'EventPath[1] must be the inner shadow root');
|
107 | 107 | assert_array_equals(log[2], [shadow.innerHost, shadow.innerHost], 'EventPath[2] must be the inner shadow host');
|
|
124 | 124 |
|
125 | 125 | log = dispatchEventWithLog(shadow.target, new Event('bar', {composed: true, bubbles: true}));
|
126 | 126 |
|
127 |
| - assert_array_equals(log.length, 6, 'EventPath must contain [target, inner root, inner host, parent, outer root, outer host]'); |
| 127 | + assert_equals(log.length, 9, 'EventPath must contain [target, inner root, inner host, parent, outer root, outer host]'); |
128 | 128 | assert_array_equals(log[0], [shadow.target, shadow.target], 'EventPath[0] must be the target');
|
129 | 129 | assert_array_equals(log[1], [shadow.innerRoot, shadow.target], 'EventPath[1] must be the inner shadow root');
|
130 | 130 | assert_array_equals(log[2], [shadow.innerHost, shadow.innerHost], 'EventPath[2] must be the inner shadow host');
|
|
0 commit comments