summaryrefslogtreecommitdiffstats
path: root/layout/reftests/xul/menuitem-key.xul
diff options
context:
space:
mode:
authorMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
committerMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
commit5f8de423f190bbb79a62f804151bc24824fa32d8 (patch)
tree10027f336435511475e392454359edea8e25895d /layout/reftests/xul/menuitem-key.xul
parent49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff)
downloadUXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip
Add m-esr52 at 52.6.0
Diffstat (limited to 'layout/reftests/xul/menuitem-key.xul')
-rw-r--r--layout/reftests/xul/menuitem-key.xul46
1 files changed, 46 insertions, 0 deletions
diff --git a/layout/reftests/xul/menuitem-key.xul b/layout/reftests/xul/menuitem-key.xul
new file mode 100644
index 000000000..504071122
--- /dev/null
+++ b/layout/reftests/xul/menuitem-key.xul
@@ -0,0 +1,46 @@
+<?xml version="1.0"?>
+<window class="reftest-wait" onload="changeKeys()"
+ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
+
+<menuitem id="m1" label="Menu1" key="keyone"/>
+<menuitem id="m2" label="Menu2" key="keytwo"/>
+<menuitem id="m3" label="Menu3"/>
+<menuitem id="m4" label="Menu4"/>
+<menuitem id="m5" label="Menu5"/>
+<menuitem id="m6" label="Menu6" key="keythree" acceltext="Text"/>
+<menuitem id="m7" label="Menu7" key="keythree" acceltext="Text"/>
+<menuitem id="m8" label="Menu8" key="keythree" acceltext="Text"/>
+<menuitem id="m9" label="Menu9" key="keytwo"/>
+
+<script>
+function changeKeys()
+{
+ document.getElementById("m1").setAttribute("key", "keytwo");
+ document.getElementById("m2").removeAttribute("key");
+ document.getElementById("m3").setAttribute("key", "keythree");
+
+ document.getElementById("m4").setAttribute("key", "keyone");
+ document.getElementById("m4").setAttribute("acceltext", "Text");
+
+ document.getElementById("m5").setAttribute("acceltext", "Text");
+ document.getElementById("m5").setAttribute("key", "keytwo");
+
+ document.getElementById("m6").removeAttribute("key");
+ document.getElementById("m7").removeAttribute("acceltext");
+
+ document.getElementById("m8").removeAttribute("key");
+ document.getElementById("m8").removeAttribute("acceltext");
+
+ document.getElementById("m9").removeAttribute("key");
+
+ document.documentElement.className='';
+}
+</script>
+
+<keyset>
+ <key id="keyone" key="Z" modifiers="control"/>
+ <key id="keytwo" key="Y" modifiers="control"/>
+ <key id="keythree" key="X" modifiers="accel"/>
+</keyset>
+
+</window>