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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/domxpath/xml_xpath_runner.html

Issue 2547023002: Import wpt@3c8896ae408c8fd594979da7c99970029e7856a7 (Closed)
Patch Set: Modify TestExpectations or download new baselines for tests. Created 4 years 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/imported/wpt/domxpath/xml_xpath_runner.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/domxpath/xml_xpath_runner.html b/third_party/WebKit/LayoutTests/imported/wpt/domxpath/xml_xpath_runner.html
index a9bbb158807969adeaab20f6b58c69b7826e9ffb..42404562a3c95b3004c7b0b7402ea366faeb4d83 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/domxpath/xml_xpath_runner.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/domxpath/xml_xpath_runner.html
@@ -17,6 +17,10 @@ function xpath_test(test_el) {
/* note this func adopts the tree! */
var new_doc = document.implementation.createDocument("", "");
var xpath = find_child_element(test_el, "xpath");
+ var result = find_child_element(test_el, "result");
+ var namespace = find_child_element(result, "namespace");
+ var localname = find_child_element(result, "localname");
+ var nth = find_child_element(result, "nth");
var tree = find_child_element(test_el, "tree");
var actual_tree = new_doc.adoptNode(tree.firstElementChild);
new_doc.appendChild(actual_tree);
@@ -32,6 +36,9 @@ function xpath_test(test_el) {
matched.push(cur);
}
assert_equals(matched.length, 1, "Should match one node");
+ var similar = new_doc.getElementsByTagNameNS(namespace.textContent,
+ localname.textContent);
+ assert_equals(matched[0], similar[nth.textContent]);
});
}

Powered by Google App Engine
This is Rietveld 408576698