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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/html/syntax/parsing/test.js

Issue 2614953003: Import wpt@eeecf3e14368d4ab5221cde688003dedeca30dba (Closed)
Patch Set: Created 3 years, 11 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/wpt/html/syntax/parsing/test.js
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/syntax/parsing/test.js b/third_party/WebKit/LayoutTests/imported/wpt/html/syntax/parsing/test.js
index 362272a2f1881595a4a4e383a3f4b32369971865..6f4afba5cd7c758995fada3d03f1926a0a2454ff 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/syntax/parsing/test.js
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/syntax/parsing/test.js
@@ -1,5 +1,6 @@
var namespaces = {
"html":"http://www.w3.org/1999/xhtml",
+ "math":"http://www.w3.org/1998/Math/MathML",
"mathml":"http://www.w3.org/1998/Math/MathML",
"svg":"http://www.w3.org/2000/svg",
"xlink":"http://www.w3.org/1999/xlink",
@@ -94,6 +95,18 @@ function test_serializer(element) {
lines.push(format("|%s%s=\"%s\"", indent_spaces, attr[0], attr[1]));
}
);
+ if ("HTMLTemplateElement" in window &&
+ Object.prototype.toString.call(element) === "[object HTMLTemplateElement]") {
+ indent += 2;
+ indent_spaces = (new Array(indent)).join(" ");
+ lines.push(format("|%scontent", indent_spaces));
+ indent += 2;
+ Array.prototype.forEach.call(element.content.childNodes,
+ function(node) {
+ serialize_element(node, indent);
+ });
+ indent -= 4;
+ }
break;
}
indent += 2;

Powered by Google App Engine
This is Rietveld 408576698