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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLMenuItemElement/menuitem-click.html

Issue 1396053002: Rename <menu type=popup> to <menu type=context>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaselined Created 5 years, 2 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
OLDNEW
1 <script src="../../../resources/js-test.js"></script> 1 <script src="../../../resources/js-test.js"></script>
2 <menu type=popup> 2 <menu type=context>
3 <menuitem id=mi1 type=checkbox> 3 <menuitem id=mi1 type=checkbox>
4 <menuitem id=mi2 type=radio radiogroup="g1" checked> 4 <menuitem id=mi2 type=radio radiogroup="g1" checked>
5 <menuitem id=mi3 type=radio radiogroup="g1"> 5 <menuitem id=mi3 type=radio radiogroup="g1">
6 <menuitem id=mi4 type=radio radiogroup="g1"> 6 <menuitem id=mi4 type=radio radiogroup="g1">
7 <menu label="Submenu"> 7 <menu label="Submenu">
8 <menuitem id=_mi1 type=radio radiogroup="g1"> 8 <menuitem id=_mi1 type=radio radiogroup="g1">
9 <menuitem id=_mi2 type=radio radiogroup="g1"> 9 <menuitem id=_mi2 type=radio radiogroup="g1">
10 <menuitem id=_mi3 type=radio radiogroup="g1"> 10 <menuitem id=_mi3 type=radio radiogroup="g1">
11 </menu> 11 </menu>
12 <menuitem id=mi5 type=radio radiogroup="g2" checked> 12 <menuitem id=mi5 type=radio radiogroup="g2" checked>
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 mi10.click(); 63 mi10.click();
64 shouldBeFalse('mi9.hasAttribute("checked")'); 64 shouldBeFalse('mi9.hasAttribute("checked")');
65 shouldBeTrue('mi10.hasAttribute("checked")'); 65 shouldBeTrue('mi10.hasAttribute("checked")');
66 // Test that radiogroup attribute is ignored if type is not radio. 66 // Test that radiogroup attribute is ignored if type is not radio.
67 var mi11 = document.getElementById('mi11'); 67 var mi11 = document.getElementById('mi11');
68 var mi12 = document.getElementById('mi12'); 68 var mi12 = document.getElementById('mi12');
69 mi11.click(); 69 mi11.click();
70 shouldBeTrue('mi11.hasAttribute("checked")'); 70 shouldBeTrue('mi11.hasAttribute("checked")');
71 shouldBeFalse('mi12.hasAttribute("checked")'); 71 shouldBeFalse('mi12.hasAttribute("checked")');
72 </script> 72 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698