Index: LayoutTests/fast/dom/shadow/resources/shadow-dom.js |
diff --git a/LayoutTests/fast/dom/shadow/resources/shadow-dom.js b/LayoutTests/fast/dom/shadow/resources/shadow-dom.js |
index cd9587cafc59c9b9e202d3562ddb28bd13b99784..8f276f8065ec99e402dc829a3d70bb61cabc6fe6 100644 |
--- a/LayoutTests/fast/dom/shadow/resources/shadow-dom.js |
+++ b/LayoutTests/fast/dom/shadow/resources/shadow-dom.js |
@@ -81,10 +81,18 @@ function dumpNode(node) |
{ |
if (!node) |
return 'null'; |
- var output = '' + node; |
if (node.id) |
- output += ' id=' + node.id; |
- return output; |
+ return '#' + node.id; |
+ return '' + node; |
+} |
+ |
+function dumpNodeList(nodeList) { |
+ var result = ""; |
+ var length = nodeList.length; |
+ for (var i = 0; i < length; i++) |
+ result += dumpNode(nodeList[i]) + ", "; |
+ result += "length: " + length; |
+ return result; |
} |
function innermostActiveElement(element) |