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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <head> 2 <head>
3 <script src="../../resources/js-test.js"></script> 3 <script src="../../resources/js-test.js"></script>
4 </head> 4 </head>
5 <div id="div"><menuitem></div> 5 <div id="div1"><menuitem></div>
6 <menu id="menu" type=context><menuitem id="first_item"><menuitem id="second_item "></menu> 6 <div id="div2"><menuitem><p>Element inside menuitem</p></menuitem></div>
7 <menu id="menu" type=context><menuitem id="first_item"><menu id="submenu" label= "submenu"><menuitem id="sub_menuitem"></menu><menuitem id="second_item"><hr><men uitem id="third_item"></menu>
7 <script> 8 <script>
8 description("This test checks parsing of menuitem tag which is a self closing ta g with no end tag."); 9 description("This test checks parsing of menuitem tag which is a self closing ta g with no end tag.");
9 shouldBeEqualToString("document.getElementById('div').innerHTML", "<menuitem>"); 10 shouldBeEqualToString("document.getElementById('div1').innerHTML", "<menuitem></ menuitem>");
10 shouldBeEqualToString("document.getElementById('menu').innerHTML", "<menuitem id =\"first_item\"><menuitem id=\"second_item\">"); 11 shouldBeEqualToString("document.getElementById('div2').innerHTML", "<menuitem><p >Element inside menuitem</p></menuitem>");
12 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><m enuitem id=\"third_item\"></menuitem>");
11 shouldBeNull("document.getElementById('first_item').firstChild"); 13 shouldBeNull("document.getElementById('first_item').firstChild");
12 shouldBe("document.getElementById('menu').firstChild.nextSibling", "document.get ElementById('second_item')"); 14 shouldBe("document.getElementById('menu').firstChild.nextSibling", "document.get ElementById('submenu')");
13 </script> 15 </script>
OLDNEW
« 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