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

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

Issue 1904403002: Recurse the inner elements only if behavior is DescendToInnerBlocks Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make menuitem non-void Created 4 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/parser/parse-menuitem-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..711b4ddbaab2c48cf0ead08de21ed5c32527109c 100644
--- a/third_party/WebKit/LayoutTests/fast/parser/parse-menuitem.html
+++ b/third_party/WebKit/LayoutTests/fast/parser/parse-menuitem.html
@@ -2,12 +2,14 @@
<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="div1"><menuitem></div>
+<div id="div2"><menuitem><p>Element inside menuitem</p></menuitem></div>
+<menu id="menu" type=context><menuitem id="first_item"><menu id="submenu" label="submenu"><menuitem id="sub_menuitem"></menu><menuitem id="second_item"><hr><menuitem id="third_item"></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\">");
+shouldBeEqualToString("document.getElementById('div1').innerHTML", "<menuitem></menuitem>");
+shouldBeEqualToString("document.getElementById('div2').innerHTML", "<menuitem><p>Element inside menuitem</p></menuitem>");
+shouldBeEqualToString("document.getElementById('menu').innerHTML", "<menuitem id=\"first_item\"></menuitem><menu id=\"submenu\" label=\"submenu\"><menuitem id=\"sub_menuitem\"></menuitem></menu><menuitem id=\"second_item\"></menuitem><hr><menuitem id=\"third_item\"></menuitem>");
shouldBeNull("document.getElementById('first_item').firstChild");
-shouldBe("document.getElementById('menu').firstChild.nextSibling", "document.getElementById('second_item')");
+shouldBe("document.getElementById('menu').firstChild.nextSibling", "document.getElementById('submenu')");
</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/parser/parse-menuitem-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698