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

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

Issue 786753003: Implement type=radio and radiogroup attribute for menuitem. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebaselined 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 3d9944799319c4a23481d25eb7d44776f3d98eb4..411394bddf7943ea3fde9b25c79a997273690e35 100644
--- a/LayoutTests/fast/dom/HTMLMenuElement/custom-context-menu.html
+++ b/LayoutTests/fast/dom/HTMLMenuElement/custom-context-menu.html
@@ -55,6 +55,10 @@
<menuitem type="checkbox" label="Item15" checked></menuitem>
<!-- Test default menuitem with "checked" attribute. -->
<menuitem label="Item16" checked></menuitem>
+ <!-- Test menuitem of type "radio" with "checked" attribute. -->
+ <menuitem type="radio" radiogroup="group" label="Item17"></menuitem>
+ <menuitem type="radio" radiogroup="group" label="Item18" checked></menuitem>
+ <menuitem type="radio" radiogroup="group" label="Item19"></menuitem>
<!-- Test removal of separator at the end. -->
<hr>
</menu>
@@ -160,7 +164,7 @@ eventSender.keyDown("escape");
var button5 = document.getElementById("button_5");
var items5 = contextClickAndGetMenuItems(button5);
-shouldBeEqualToNumber("itemsWithCustomContextMenu.length - items.length", 20);
+shouldBeEqualToNumber("itemsWithCustomContextMenu.length - items.length", 23);
shouldBeEqualToString("itemsWithCustomContextMenu[0]", "Item1");
shouldBeEqualToString("itemsWithCustomContextMenu[1]", "#Item2");
shouldBeEqualToString("itemsWithCustomContextMenu[2]", "---------");
@@ -181,6 +185,9 @@ shouldBeEqualToString("itemsWithCustomContextMenu[16]", "Item13");
shouldBeEqualToString("itemsWithCustomContextMenu[17]", "Item14");
shouldBeEqualToString("itemsWithCustomContextMenu[18]", "*Item15");
shouldBeEqualToString("itemsWithCustomContextMenu[19]", "Item16");
+shouldBeEqualToString("itemsWithCustomContextMenu[20]", "Item17");
+shouldBeEqualToString("itemsWithCustomContextMenu[21]", "*Item18");
+shouldBeEqualToString("itemsWithCustomContextMenu[22]", "Item19");
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