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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/syntax/serializing-html-fragments/outerHTML.html

Issue 1666363003: Import web-platform-tests@27e3d93f88a71a249d1df872a5d613b3243b9588 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missed win failiure in TestExpectations Created 4 years, 10 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/html/syntax/serializing-html-fragments/outerHTML.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/syntax/serializing-html-fragments/outerHTML.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/syntax/serializing-html-fragments/outerHTML.html
index b8f544cfd2e46fc2ba4fef7c3ad4acce4ed28c0b..6f173d3dca466c69098f44afa5a7c7bcc1472e0c 100644
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/syntax/serializing-html-fragments/outerHTML.html
+++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/syntax/serializing-html-fragments/outerHTML.html
@@ -7,159 +7,19 @@
<link rel="help" href="https://dvcs.w3.org/hg/innerhtml/raw-file/tip/index.html#widl-Element-outerHTML">
<script src="../../../../../resources/testharness.js"></script>
<script src="../../../../../resources/testharnessreport.js"></script>
+ <script src="../html-element-list.js"></script>
</head>
<body>
<div id="log"></div>
<script>
- var element = [
- "a",
- "abbr",
- "address",
- "article",
- "aside",
- "audio",
- "b",
- "bdi",
- "bdo",
- "blockquote",
- "body",
- "button",
- "canvas",
- "caption",
- "cite",
- "code",
- "colgroup",
- "command",
- "datalist",
- "dd",
- "del",
- "details",
- "dfn",
- "dialog",
- "div",
- "dl",
- "dt",
- "em",
- "fieldset",
- "figcaption",
- "figure",
- "footer",
- "form",
- "h1",
- "h2",
- "h3",
- "h4",
- "h5",
- "h6",
- "head",
- "header",
- "hgroup",
- "html",
- "i",
- "iframe",
- "ins",
- "kbd",
- "label",
- "legend",
- "li",
- "map",
- "mark",
- "menu",
- "meter",
- "nav",
- "noscript",
- "object",
- "ol",
- "optgroup",
- "option",
- "output",
- "p",
- "pre",
- "progress",
- "q",
- "rp",
- "rt",
- "ruby",
- "s",
- "samp",
- "script",
- "section",
- "select",
- "small",
- "span",
- "strong",
- "style",
- "sub",
- "summary",
- "sup",
- "table",
- "tbody",
- "td",
- "textarea",
- "tfoot",
- "th",
- "thead",
- "time",
- "title",
- "tr",
- "u",
- "ul",
- "var",
- "video",
- "data",
- //"acronym",
- //"applet",
- //"basefont",
- //"bgsound",
- //"big",
- //"blink",
- //"center",
- //"dir",
- //"font",
- //"frame",
- //"frameset",
- //"isindex",
- //"listing",
- //"marquee",
- //"multicol",
- //"nextid",
- //"nobr",
- //"noembed",
- //"noframes",
- //"plaintext",
- //"rb",
- //"spacer",
- //"strike",
- //"tt",
- //"xmp",
- ];
-
- var noEndTag = [
- "area",
- "base",
- "br",
- "col",
- "embed",
- "hr",
- "img",
- "input",
- "keygen",
- "link",
- "meta",
- "param",
- "source",
- "track",
- "wbr",
- ];
-
test(function() {
- element.forEach(function(ele) {
+ elements_with_end_tag.forEach(function(ele) {
test(function() {
var e = document.createElement(ele);
assert_equals(e.outerHTML, "<" + ele + "></" + ele + ">", ele + " node created." );
}, "Node for " + ele);
});
- noEndTag.forEach(function(ele) {
+ elements_without_end_tag.forEach(function(ele) {
test(function() {
var e = document.createElement(ele);
assert_equals(e.outerHTML, "<" + ele + ">", ele + " node created." );
@@ -168,4 +28,4 @@
}, document.title);
</script>
</body>
-</html>
+</html>

Powered by Google App Engine
This is Rietveld 408576698