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); |