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

Side by Side Diff: LayoutTests/fast/dom/HTMLMenuItemElement/menuitem-click.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 unified diff | Download patch
OLDNEW
(Empty)
1 <script src="../../../resources/js-test.js"></script>
2 <menu type=popup>
3 <menuitem id=mi1 type=checkbox>
4 </menu>
5 <script>
6
7 description('Test that the "checked" attribute of menuitem is toggled with click .');
8
9 var element = document.getElementById('mi1');
10 element.click();
11 shouldBeTrue('element.hasAttribute("checked")');
12 element.click();
13 shouldBeFalse('element.hasAttribute("checked")');
14 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698