Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Unified Diff: LayoutTests/svg/custom/use-instanceRoot-event-listener-liveness.xhtml

Issue 257033002: Do not implement EventTarget on SVGElementInstance (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Try to fix TestExpectations Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698