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

Unified Diff: LayoutTests/inspector/elements/node-xpath.xhtml

Issue 75253002: DevTools: [Elements] Implement "Copy CSS Path" context menu item for elements (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Tentatively fix xpath test on Windows bot Created 7 years, 1 month 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/inspector/elements/node-xpath.xhtml
diff --git a/LayoutTests/inspector/elements/node-xpath.xhtml b/LayoutTests/inspector/elements/node-xpath.xhtml
index c3748fb5adab7e859d5615e9fa038b163d79ac5e..336e4f21f2b0bda9c348ba5467faa2596c8bc6c4 100644
--- a/LayoutTests/inspector/elements/node-xpath.xhtml
+++ b/LayoutTests/inspector/elements/node-xpath.xhtml
@@ -39,8 +39,8 @@ function test()
function dumpNodeData(node, prefix)
{
- var result = prefix + "'" + node.nodeName() + "':'" + node.nodeValue() + "' - '" + node.xPath(true) + "'";
- InspectorTest.addResult(result.replace(/\n/g, "\\n"));
+ var result = prefix + "'" + node.nodeName() + "':'" + node.nodeValue() + "' - '" + WebInspector.DOMPresentationUtils.xPath(node, true) + "'";
+ InspectorTest.addResult(result.replace(/\r?\n/g, "\\n"));
}
}
//]]>
@@ -57,7 +57,7 @@ function f()
</head>
<body onload="runTest()">
-<p>Tests DOMNode.xPath()</p>
+<p>Tests node xPath construction</p>
<div id="id1" class="foo"></div>
<div id="id2" class="foo"></div>

Powered by Google App Engine
This is Rietveld 408576698