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

Unified Diff: third_party/WebKit/LayoutTests/fast/parser/parse-menuitem.html

Issue 2819773002: Change <menuitem> parsing rules to match spec (Closed)
Patch Set: Fix affected layout test Created 3 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/fast/parser/parse-menuitem.html
diff --git a/third_party/WebKit/LayoutTests/fast/parser/parse-menuitem.html b/third_party/WebKit/LayoutTests/fast/parser/parse-menuitem.html
index e3e57b2ecf48c01b36c4dd38d538b7b38019844b..58348ce4e98108655fa0239e1ae548c81c03c728 100644
--- a/third_party/WebKit/LayoutTests/fast/parser/parse-menuitem.html
+++ b/third_party/WebKit/LayoutTests/fast/parser/parse-menuitem.html
@@ -2,12 +2,12 @@
<head>
<script src="../../resources/js-test.js"></script>
</head>
-<div id="div"><menuitem></div>
-<menu id="menu" type=context><menuitem id="first_item"><menuitem id="second_item"></menu>
+<div id="div"><menuitem></menuitem></div>
+<menu id="menu" type=context><menuitem id="first_item"></menuitem><menuitem id="second_item"></menuitem></menu>
<script>
-description("This test checks parsing of menuitem tag which is a self closing tag with no end tag.");
-shouldBeEqualToString("document.getElementById('div').innerHTML", "<menuitem>");
-shouldBeEqualToString("document.getElementById('menu').innerHTML", "<menuitem id=\"first_item\"><menuitem id=\"second_item\">");
+description("This test checks parsing of menuitem tag which has an end tag.");
+shouldBeEqualToString("document.getElementById('div').innerHTML", "<menuitem></menuitem>");
+shouldBeEqualToString("document.getElementById('menu').innerHTML", "<menuitem id=\"first_item\"></menuitem><menuitem id=\"second_item\"></menuitem>");
shouldBeNull("document.getElementById('first_item').firstChild");
shouldBe("document.getElementById('menu').firstChild.nextSibling", "document.getElementById('second_item')");
</script>

Powered by Google App Engine
This is Rietveld 408576698