Index: LayoutTests/svg/custom/use-instanceRoot-event-listener-liveness.xhtml |
diff --git a/LayoutTests/svg/custom/use-instanceRoot-event-listener-liveness.xhtml b/LayoutTests/svg/custom/use-instanceRoot-event-listener-liveness.xhtml |
index dacd92778a56d10affb61e84e1127f8dd57e94a8..62775aa49228b528c2dd61817f3c44c1a67b065b 100644 |
--- a/LayoutTests/svg/custom/use-instanceRoot-event-listener-liveness.xhtml |
+++ b/LayoutTests/svg/custom/use-instanceRoot-event-listener-liveness.xhtml |
@@ -38,14 +38,16 @@ function fireSimulatedMouseClickEvent(eventTarget) |
function startTest() { |
var useElement = document.getElementById("test"); |
+ var shadowRoot = internals.shadowRoot(useElement); |
+ |
// No-op, as no listener is not yet registered |
- fireSimulatedMouseClickEvent(useElement.instanceRoot); |
+ fireSimulatedMouseClickEvent(shadowRoot.firstChild); |
// Add listener |
- useElement.instanceRoot.addEventListener("click", eventHandler, false); |
+ shadowRoot.firstChild.addEventListener("click", eventHandler, false); |
// Should fire immediately and finish the test |
- fireSimulatedMouseClickEvent(useElement.instanceRoot); |
+ fireSimulatedMouseClickEvent(shadowRoot.firstChild); |
} |
</script> |