Skip to content

Commit dd01f9a

Browse files
jessi3pyTakayoshi Kochi
authored andcommitted
shadow-dom: use assert_equals to verify array length in event-inside-shadow-tree.html (web-platform-tests#8457)
1 parent 67143b2 commit dd01f9a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

shadow-dom/event-inside-shadow-tree.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545
log = dispatchEventWithLog(shadow.target, new Event('foo', {composed: true, bubbles: true}));
4646

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]');
4848
assert_array_equals(log[0], [shadow.target, shadow.target], 'EventPath[0] must be the target');
4949
assert_array_equals(log[1], [shadow.parent, shadow.target], 'EventPath[1] must be the parent of the target');
5050
assert_array_equals(log[2], [shadow.root, shadow.target], 'EventPath[2] must be the shadow root');
@@ -63,7 +63,7 @@
6363

6464
log = dispatchEventWithLog(shadow.target, new Event('foo', {composed: true, bubbles: true}));
6565

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]');
6767
assert_array_equals(log[0], [shadow.target, shadow.target], 'EventPath[0] must be the target');
6868
assert_array_equals(log[1], [shadow.parent, shadow.target], 'EventPath[1] must be the parent of the target');
6969
assert_array_equals(log[2], [shadow.root, shadow.target], 'EventPath[2] must be the shadow root');
@@ -101,7 +101,7 @@
101101

102102
log = dispatchEventWithLog(shadow.target, new Event('bar', {composed: true, bubbles: true}));
103103

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]');
105105
assert_array_equals(log[0], [shadow.target, shadow.target], 'EventPath[0] must be the target');
106106
assert_array_equals(log[1], [shadow.innerRoot, shadow.target], 'EventPath[1] must be the inner shadow root');
107107
assert_array_equals(log[2], [shadow.innerHost, shadow.innerHost], 'EventPath[2] must be the inner shadow host');
@@ -124,7 +124,7 @@
124124

125125
log = dispatchEventWithLog(shadow.target, new Event('bar', {composed: true, bubbles: true}));
126126

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]');
128128
assert_array_equals(log[0], [shadow.target, shadow.target], 'EventPath[0] must be the target');
129129
assert_array_equals(log[1], [shadow.innerRoot, shadow.target], 'EventPath[1] must be the inner shadow root');
130130
assert_array_equals(log[2], [shadow.innerHost, shadow.innerHost], 'EventPath[2] must be the inner shadow host');

0 commit comments

Comments
 (0)