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

Side by Side Diff: third_party/WebKit/LayoutTests/html/menu_menuitem/menuitem-click.html

Issue 2782093002: Move tests for <menu> and <menuitem> to LayoutTests/html/menu_menuitem/. (Closed)
Patch Set: Created 3 years, 8 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=context> 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>
(...skipping 51 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