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> |