Thu, 15 Jan 2015 15:55:04 +0100
Back out 97036ab72558 which inappropriately compared turds to third parties.
michael@0 | 1 | <?xml version="1.0"?> |
michael@0 | 2 | <window class="reftest-wait" onload="changeKeys()" |
michael@0 | 3 | xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> |
michael@0 | 4 | |
michael@0 | 5 | <menuitem id="m1" label="Menu1" key="keyone"/> |
michael@0 | 6 | <menuitem id="m2" label="Menu2" key="keytwo"/> |
michael@0 | 7 | <menuitem id="m3" label="Menu3"/> |
michael@0 | 8 | <menuitem id="m4" label="Menu4"/> |
michael@0 | 9 | <menuitem id="m5" label="Menu5"/> |
michael@0 | 10 | <menuitem id="m6" label="Menu6" key="keythree" acceltext="Text"/> |
michael@0 | 11 | <menuitem id="m7" label="Menu7" key="keythree" acceltext="Text"/> |
michael@0 | 12 | <menuitem id="m8" label="Menu8" key="keythree" acceltext="Text"/> |
michael@0 | 13 | <menuitem id="m9" label="Menu9" key="keytwo"/> |
michael@0 | 14 | |
michael@0 | 15 | <script> |
michael@0 | 16 | function changeKeys() |
michael@0 | 17 | { |
michael@0 | 18 | document.getElementById("m1").setAttribute("key", "keytwo"); |
michael@0 | 19 | document.getElementById("m2").removeAttribute("key"); |
michael@0 | 20 | document.getElementById("m3").setAttribute("key", "keythree"); |
michael@0 | 21 | |
michael@0 | 22 | document.getElementById("m4").setAttribute("key", "keyone"); |
michael@0 | 23 | document.getElementById("m4").setAttribute("acceltext", "Text"); |
michael@0 | 24 | |
michael@0 | 25 | document.getElementById("m5").setAttribute("acceltext", "Text"); |
michael@0 | 26 | document.getElementById("m5").setAttribute("key", "keytwo"); |
michael@0 | 27 | |
michael@0 | 28 | document.getElementById("m6").removeAttribute("key"); |
michael@0 | 29 | document.getElementById("m7").removeAttribute("acceltext"); |
michael@0 | 30 | |
michael@0 | 31 | document.getElementById("m8").removeAttribute("key"); |
michael@0 | 32 | document.getElementById("m8").removeAttribute("acceltext"); |
michael@0 | 33 | |
michael@0 | 34 | document.getElementById("m9").removeAttribute("key"); |
michael@0 | 35 | |
michael@0 | 36 | document.documentElement.className=''; |
michael@0 | 37 | } |
michael@0 | 38 | </script> |
michael@0 | 39 | |
michael@0 | 40 | <keyset> |
michael@0 | 41 | <key id="keyone" key="Z" modifiers="control"/> |
michael@0 | 42 | <key id="keytwo" key="Y" modifiers="control"/> |
michael@0 | 43 | <key id="keythree" key="X" modifiers="accel"/> |
michael@0 | 44 | </keyset> |
michael@0 | 45 | |
michael@0 | 46 | </window> |