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

Unified Diff: LayoutTests/svg/custom/use-listener-append-crash.html

Issue 278033003: Avoid using instanceRoot in layout tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
« no previous file with comments | « no previous file | LayoutTests/svg/custom/use-modify-target-container.svg » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/svg/custom/use-listener-append-crash.html
diff --git a/LayoutTests/svg/custom/use-listener-append-crash.html b/LayoutTests/svg/custom/use-listener-append-crash.html
index 5b8b9a1a95c68f4076796bcaa54695c91bfcebce..bf064c8eb9669f5dc435c683fc951bd55fc4342f 100644
--- a/LayoutTests/svg/custom/use-listener-append-crash.html
+++ b/LayoutTests/svg/custom/use-listener-append-crash.html
@@ -14,7 +14,7 @@
testRunner.dumpAsText();
leftSquare.addEventListener('mousedown', function() { leftSquare.parentNode.appendChild(leftSquare); });
- leftSquare.addEventListener('mousedown', function() { leftSquare.instanceRoot.correspondingElement.setAttribute("fill", "green"); });
+ leftSquare.addEventListener('mousedown', function() { document.getElementById("square").setAttribute("fill", "green"); });
if (window.eventSender) {
eventSender.mouseMoveTo(20, 20);
@@ -25,4 +25,4 @@
<p>Test re-appending a use node with multiple event listeners, triggered by the first listener.
If running manually, click on the left square.
Pass if no crash and the visible result is an orange square left of a green square.</p>
-</html>
+</html>
« no previous file with comments | « no previous file | LayoutTests/svg/custom/use-modify-target-container.svg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698