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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/dom/HTMLMenuItemElement/menuitem-click.html
diff --git a/LayoutTests/fast/dom/HTMLMenuItemElement/menuitem-click.html b/LayoutTests/fast/dom/HTMLMenuItemElement/menuitem-click.html
new file mode 100644
index 0000000000000000000000000000000000000000..81fe5b804fe6db0190ef2405b6a214630c0b66dc
--- /dev/null
+++ b/LayoutTests/fast/dom/HTMLMenuItemElement/menuitem-click.html
@@ -0,0 +1,14 @@
+<script src="../../../resources/js-test.js"></script>
+<menu type=popup>
+ <menuitem id=mi1 type=checkbox>
+</menu>
+<script>
+
+description('Test that the "checked" attribute of menuitem is toggled with click.');
+
+var element = document.getElementById('mi1');
+element.click();
+shouldBeTrue('element.hasAttribute("checked")');
+element.click();
+shouldBeFalse('element.hasAttribute("checked")');
+</script>

Powered by Google App Engine
This is Rietveld 408576698