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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/shadow/resources/shadow-dom.js

Issue 1675193002: Rename 'composed tree' to 'flat tree' in the layout tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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: third_party/WebKit/LayoutTests/fast/dom/shadow/resources/shadow-dom.js
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/resources/shadow-dom.js b/third_party/WebKit/LayoutTests/fast/dom/shadow/resources/shadow-dom.js
index 927d050a3dc0006d1e5ca9ff4f6261e85565ad7f..342730b6951534ad0b4c2c30af2afa2bc02676d2 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/resources/shadow-dom.js
+++ b/third_party/WebKit/LayoutTests/fast/dom/shadow/resources/shadow-dom.js
@@ -251,13 +251,13 @@ function testFocusNavigationBackward(elements)
shouldNavigateFocus(elements[i], elements[i + 1], 'backward');
}
-function dumpComposedShadowTree(node, indent)
+function dumpFlatTree(node, indent)
{
indent = indent || "";
var output = indent + dumpNode(node) + "\n";
var child;
for (child = internals.firstChildInFlatTree(node); child; child = internals.nextSiblingInFlatTree(child))
- output += dumpComposedShadowTree(child, indent + "\t");
+ output += dumpFlatTree(child, indent + "\t");
return output;
}
@@ -269,7 +269,7 @@ function lastNodeInFlatTree(root)
return lastNode;
}
-function showComposedShadowTreeByTraversingInForward(root)
+function showFlatTreeByTraversingInForward(root)
{
var node = root;
var last = lastNodeInFlatTree(root);
@@ -281,7 +281,7 @@ function showComposedShadowTreeByTraversingInForward(root)
}
}
-function showComposedShadowTreeByTraversingInBackward(root)
+function showFlatTreeByTraversingInBackward(root)
{
var node = lastNodeInFlatTree(root);
while (node) {
@@ -292,16 +292,16 @@ function showComposedShadowTreeByTraversingInBackward(root)
}
}
-function showComposedShadowTree(node)
+function showFlatTree(node)
{
- debug('Composed Shadow Tree:');
- debug(dumpComposedShadowTree(node));
+ debug('Flat Tree:');
+ debug(dumpFlatTree(node));
debug('Traverse in forward.');
- showComposedShadowTreeByTraversingInForward(node);
+ showFlatTreeByTraversingInForward(node);
debug('Traverse in backward.');
- showComposedShadowTreeByTraversingInBackward(node);
+ showFlatTreeByTraversingInBackward(node);
debug('');
}

Powered by Google App Engine
This is Rietveld 408576698