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

Unified Diff: LayoutTests/svg/custom/use-on-use-with-child.svg

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
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){
« no previous file with comments | « LayoutTests/svg/custom/use-modify-target-symbol.svg ('k') | LayoutTests/svg/custom/use-on-use-with-child-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698