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

Unified Diff: LayoutTests/fast/dom/HTMLMenuElement/custom-context-menu.html

Issue 766863002: Implement checked attribute for menuitem. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 years 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 | LayoutTests/fast/dom/HTMLMenuElement/custom-context-menu-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/HTMLMenuElement/custom-context-menu.html
diff --git a/LayoutTests/fast/dom/HTMLMenuElement/custom-context-menu.html b/LayoutTests/fast/dom/HTMLMenuElement/custom-context-menu.html
index 5cc668d7c1c59e75177cb0ef7098394704de627b..3d9944799319c4a23481d25eb7d44776f3d98eb4 100644
--- a/LayoutTests/fast/dom/HTMLMenuElement/custom-context-menu.html
+++ b/LayoutTests/fast/dom/HTMLMenuElement/custom-context-menu.html
@@ -49,6 +49,12 @@
<!-- Test menuitem menu with empty label. -->
<menuitem label=""></menuitem>
<menuitem label="Item13"></menuitem>
+ <!-- Test menuitem of type "checkbox" without "checked" attribute. -->
+ <menuitem type="checkbox" label="Item14"></menuitem>
+ <!-- Test menuitem of type "checkbox" with "checked" attribute. -->
+ <menuitem type="checkbox" label="Item15" checked></menuitem>
+ <!-- Test default menuitem with "checked" attribute. -->
+ <menuitem label="Item16" checked></menuitem>
<!-- Test removal of separator at the end. -->
<hr>
</menu>
@@ -154,7 +160,7 @@ eventSender.keyDown("escape");
var button5 = document.getElementById("button_5");
var items5 = contextClickAndGetMenuItems(button5);
-shouldBeEqualToNumber("itemsWithCustomContextMenu.length - items.length", 17);
+shouldBeEqualToNumber("itemsWithCustomContextMenu.length - items.length", 20);
shouldBeEqualToString("itemsWithCustomContextMenu[0]", "Item1");
shouldBeEqualToString("itemsWithCustomContextMenu[1]", "#Item2");
shouldBeEqualToString("itemsWithCustomContextMenu[2]", "---------");
@@ -172,6 +178,9 @@ shouldBeEqualToString("itemsWithCustomContextMenu[13]", "Item11");
shouldBeEqualToString("itemsWithCustomContextMenu[14]", "Item12");
shouldBeEqualToString("itemsWithCustomContextMenu[15]", "---------");
shouldBeEqualToString("itemsWithCustomContextMenu[16]", "Item13");
+shouldBeEqualToString("itemsWithCustomContextMenu[17]", "Item14");
+shouldBeEqualToString("itemsWithCustomContextMenu[18]", "*Item15");
+shouldBeEqualToString("itemsWithCustomContextMenu[19]", "Item16");
shouldBeEqualToNumber("items1.length - items.length", 0);
shouldBeEqualToNumber("items2.length - items.length", 0);
shouldBeEqualToNumber("items3.length - items.length", 0);
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLMenuElement/custom-context-menu-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698