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

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

Issue 443373002: Add <menuitem>, new HTMLMenuElement IDL attributes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed comments Created 6 years, 4 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: LayoutTests/fast/parser/parse-menuitem.html
diff --git a/LayoutTests/fast/parser/parse-menuitem.html b/LayoutTests/fast/parser/parse-menuitem.html
new file mode 100644
index 0000000000000000000000000000000000000000..62be03375b0c0e4152f1fb910b6e9ec5f444424f
--- /dev/null
+++ b/LayoutTests/fast/parser/parse-menuitem.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<head>
+<script src="../../resources/js-test.js"></script>
+</head>
+<div id="div"><menuitem></div>
+<menu id="menu" type=popup><menuitem id="first_item"><menuitem id="second_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\">");
+shouldBeNull("document.getElementById('first_item').firstChild");
+shouldBe("document.getElementById('menu').firstChild.nextSibling", "document.getElementById('second_item')");
+</script>
« no previous file with comments | « LayoutTests/fast/dom/script-tests/boolean-attribute-reflection.js ('k') | LayoutTests/fast/parser/parse-menuitem-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698