Index: LayoutTests/svg/custom/use-on-use-with-child.svg |
diff --git a/LayoutTests/svg/custom/use-on-use-with-child.svg b/LayoutTests/svg/custom/use-on-use-with-child.svg |
index 3a6d0a10e815c3e01e2f8d5cb2fac4d199a61503..9f16d9bf7b761da2d0cd19196e0ff2a110d6bf0a 100644 |
--- a/LayoutTests/svg/custom/use-on-use-with-child.svg |
+++ b/LayoutTests/svg/custom/use-on-use-with-child.svg |
@@ -26,21 +26,25 @@ |
// makeCrash(); |
var console = document.getElementById("console"); |
- function println(string) |
+ function print(string) |
{ |
- console.textContent += string + '\n'; |
+ console.textContent += string; |
} |
function printInstanceTree( obj, indent ) |
{ |
indent += " "; |
- println(indent + "id = " + obj.correspondingElement.id + " this = " + obj + " correspondingElement = " + obj.correspondingElement); |
+ print(indent); |
+ if (obj.id) { |
+ print(" id = " + obj.id); |
+ } |
+ print(" this = " + obj + "\n"); |
for (var m = obj.firstChild; m != null; m = m.nextSibling ) { |
printInstanceTree(m, indent); |
} |
} |
- var useobj = document.getElementById("zoomplus").instanceRoot; |
- println("The instance tree of use element zoomplus:\n"); |
+ var useobj = internals.shadowRoot(document.getElementById("zoomplus")); |
+ print("The instance tree of use element zoomplus:\n"); |
printInstanceTree(useobj,""); |
if (window.testRunner){ |