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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/nodes/case.js

Issue 1899623002: Import latest web-platform-tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: handle new failures Created 4 years, 8 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/imported/web-platform-tests/dom/nodes/case.js
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/nodes/case.js b/third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/nodes/case.js
index fb28b9514a303c4af7cba4d32b9284b5b5f98d9c..8c2da4a44af345dddca47d18f5bfb89d0686dfb0 100644
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/nodes/case.js
+++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/nodes/case.js
@@ -73,6 +73,13 @@ function ascii_lowercase(input) {
});
}
+function get_qualified_name(el) {
+ if (el.prefix) {
+ return el.prefix + ":" + el.localName;
+ }
+ return el.localName;
+}
+
function test_create_element(name) {
var node = document.createElement(name);
assert_equals(node.localName, expected_case(name));
@@ -133,9 +140,9 @@ function test_get_elements_tag_name(elements_to_create, search_string) {
var expected = Array.prototype.filter.call(container.childNodes,
function(node) {
if (is_html && node.namespaceURI === "http://www.w3.org/1999/xhtml") {
- return node.localName === expected_case(search_string);
+ return get_qualified_name(node) === expected_case(search_string);
} else {
- return node.localName === search_string;
+ return get_qualified_name(node) === search_string;
}
});
document.documentElement.appendChild(container);

Powered by Google App Engine
This is Rietveld 408576698