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

Unified Diff: LayoutTests/svg/custom/resources/use-instanceRoot-event-bubbling.js

Issue 323343004: [SVG2] The exposed event target should be the <use> element. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase :P Created 6 years, 6 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 | « LayoutTests/TestExpectations ('k') | LayoutTests/svg/custom/use-event-retargeting.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/svg/custom/resources/use-instanceRoot-event-bubbling.js
diff --git a/LayoutTests/svg/custom/resources/use-instanceRoot-event-bubbling.js b/LayoutTests/svg/custom/resources/use-instanceRoot-event-bubbling.js
index d14905a5bc7a4a260cdde9a25f855ac58096e2b8..d46db72373fd04308da9c78e1ca2f87db6f9884e 100644
--- a/LayoutTests/svg/custom/resources/use-instanceRoot-event-bubbling.js
+++ b/LayoutTests/svg/custom/resources/use-instanceRoot-event-bubbling.js
@@ -56,12 +56,12 @@ function nextTest()
switch (counter) {
case 1:
rect.onclick = function(evt) { eventHandler(evt, 1); };
- expected[0] = "[EventHandler 1] type: click phase: AT_TARGET target: [object SVGUseElement] (id: use) currentTarget: [object SVGUseElement] (id: use)";
+ expected[0] = "[EventHandler 1] type: click phase: AT_TARGET target: [object SVGRectElement] (id: rect) currentTarget: [object SVGRectElement] (id: rect)";
testListeners();
break;
case 2:
rectContainer.addEventListener("click", function(evt) { eventHandler(evt, 2) }, false);
- expected[1] = "[EventHandler 2] type: click phase: AT_TARGET target: [object SVGUseElement] (id: use) currentTarget: [object SVGUseElement] (id: use)";
+ expected[1] = "[EventHandler 2] type: click phase: BUBBLING target: [object SVGRectElement] (id: rect) currentTarget: [object SVGGElement] (id: rectParent)";
testListeners();
break;
case 3:
@@ -103,7 +103,7 @@ defs.appendChild(rectContainer);
var rect = document.createElementNS(svgNS, "rect");
rect.id = "rect";
-rect.style.fill = "red";
+rect.style.fill = "blue";
rect.width.baseVal.value = 100;
rect.height.baseVal.value = 100;
rectContainer.appendChild(rect);
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/svg/custom/use-event-retargeting.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698