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

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

Issue 761743002: Implement disabled and checked attribute for menuitem. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: "disabled" only 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 unified diff | 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 »
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 <button id="button" style="height: 100px; width: 100px;"> 5 <button id="button" style="height: 100px; width: 100px;">
6 </button> 6 </button>
7 <button id="button_with_contextmenu" contextmenu="menu_id" style="height: 100px; width: 100px;"> 7 <button id="button_with_contextmenu" contextmenu="menu_id" style="height: 100px; width: 100px;">
8 <menu id="menu_id" type="PopUp"> 8 <menu id="menu_id" type="PopUp">
9 <!-- Test removal of separator at the start. --> 9 <!-- Test removal of separator at the start. -->
10 <hr> 10 <hr>
11 <menuitem label="Item1"></menuitem> 11 <menuitem label="Item1"></menuitem>
12 <menuitem label="Item2"></menuitem> 12 <!-- Test disabled menuitem. -->
13 <menuitem label="Item2" disabled></menuitem>
13 <!-- Test addition of separator for <hr>. --> 14 <!-- Test addition of separator for <hr>. -->
14 <hr> 15 <hr>
15 <menuitem label="Item3"></menuitem> 16 <menuitem label="Item3"></menuitem>
16 <!-- Test child menu with label. --> 17 <!-- Test child menu with label. -->
17 <menu label="Submenu"> 18 <menu label="Submenu">
18 <menuitem label="Item4"></menuitem> 19 <menuitem label="Item4"></menuitem>
19 <menu label="Deeper submenu"> 20 <menu label="Deeper submenu">
20 <!-- Test removal of separator at the start inside submenu. --> 21 <!-- Test removal of separator at the start inside submenu. -->
21 <hr> 22 <hr>
22 <menuitem label="Item5"></menuitem> 23 <menuitem label="Item5"></menuitem>
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 var items3 = contextClickAndGetMenuItems(button3); 132 var items3 = contextClickAndGetMenuItems(button3);
132 133
133 // Esc key to hide the context menu. 134 // Esc key to hide the context menu.
134 eventSender.keyDown("escape"); 135 eventSender.keyDown("escape");
135 136
136 var button4 = document.getElementById("button_4"); 137 var button4 = document.getElementById("button_4");
137 var items4 = contextClickAndGetMenuItems(button4); 138 var items4 = contextClickAndGetMenuItems(button4);
138 139
139 shouldBeEqualToNumber("itemsWithCustomContextMenu.length - items.length", 17); 140 shouldBeEqualToNumber("itemsWithCustomContextMenu.length - items.length", 17);
140 shouldBeEqualToString("itemsWithCustomContextMenu[0]", "Item1"); 141 shouldBeEqualToString("itemsWithCustomContextMenu[0]", "Item1");
141 shouldBeEqualToString("itemsWithCustomContextMenu[1]", "Item2"); 142 shouldBeEqualToString("itemsWithCustomContextMenu[1]", "#Item2");
142 shouldBeEqualToString("itemsWithCustomContextMenu[2]", "---------"); 143 shouldBeEqualToString("itemsWithCustomContextMenu[2]", "---------");
143 shouldBeEqualToString("itemsWithCustomContextMenu[3]", "Item3"); 144 shouldBeEqualToString("itemsWithCustomContextMenu[3]", "Item3");
144 shouldBeEqualToString("itemsWithCustomContextMenu[4]", "Submenu >"); 145 shouldBeEqualToString("itemsWithCustomContextMenu[4]", "Submenu >");
145 shouldBeEqualToString("itemsWithCustomContextMenu[5]", "_Item4"); 146 shouldBeEqualToString("itemsWithCustomContextMenu[5]", "_Item4");
146 shouldBeEqualToString("itemsWithCustomContextMenu[6]", "_Deeper submenu >"); 147 shouldBeEqualToString("itemsWithCustomContextMenu[6]", "_Deeper submenu >");
147 shouldBeEqualToString("itemsWithCustomContextMenu[7]", "__Item5"); 148 shouldBeEqualToString("itemsWithCustomContextMenu[7]", "__Item5");
148 shouldBeEqualToString("itemsWithCustomContextMenu[8]", "__---------"); 149 shouldBeEqualToString("itemsWithCustomContextMenu[8]", "__---------");
149 shouldBeEqualToString("itemsWithCustomContextMenu[9]", "__Item6"); 150 shouldBeEqualToString("itemsWithCustomContextMenu[9]", "__Item6");
150 shouldBeEqualToString("itemsWithCustomContextMenu[10]", "Item7"); 151 shouldBeEqualToString("itemsWithCustomContextMenu[10]", "Item7");
151 shouldBeEqualToString("itemsWithCustomContextMenu[11]", "---------"); 152 shouldBeEqualToString("itemsWithCustomContextMenu[11]", "---------");
152 shouldBeEqualToString("itemsWithCustomContextMenu[12]", "Item8"); 153 shouldBeEqualToString("itemsWithCustomContextMenu[12]", "Item8");
153 shouldBeEqualToString("itemsWithCustomContextMenu[13]", "Item11"); 154 shouldBeEqualToString("itemsWithCustomContextMenu[13]", "Item11");
154 shouldBeEqualToString("itemsWithCustomContextMenu[14]", "Item12"); 155 shouldBeEqualToString("itemsWithCustomContextMenu[14]", "Item12");
155 shouldBeEqualToString("itemsWithCustomContextMenu[15]", "---------"); 156 shouldBeEqualToString("itemsWithCustomContextMenu[15]", "---------");
156 shouldBeEqualToString("itemsWithCustomContextMenu[16]", "Item13"); 157 shouldBeEqualToString("itemsWithCustomContextMenu[16]", "Item13");
157 shouldBeEqualToNumber("items1.length - items.length", 0); 158 shouldBeEqualToNumber("items1.length - items.length", 0);
158 shouldBeEqualToNumber("items2.length - items.length", 0); 159 shouldBeEqualToNumber("items2.length - items.length", 0);
159 shouldBeEqualToNumber("items3.length - items.length", 0); 160 shouldBeEqualToNumber("items3.length - items.length", 0);
160 shouldBeEqualToNumber("items4.length - items.length", 0); 161 shouldBeEqualToNumber("items4.length - items.length", 0);
161 162
162 </script> 163 </script>
OLDNEW
« 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