Wed, 31 Dec 2014 13:27:57 +0100
Ignore runtime configuration files generated during quality assurance.
michael@0 | 1 | <?xml version="1.0"?> |
michael@0 | 2 | <?xml-stylesheet href="chrome://global/skin" type="text/css"?> |
michael@0 | 3 | |
michael@0 | 4 | <!-- This test checks that access keys are rendered properly, both when set with the |
michael@0 | 5 | accesskey attribute in the markup and updated via script later. |
michael@0 | 6 | --> |
michael@0 | 7 | <window class="reftest-wait" onload="changeKeys()" |
michael@0 | 8 | xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> |
michael@0 | 9 | |
michael@0 | 10 | <script> |
michael@0 | 11 | <![CDATA[ |
michael@0 | 12 | |
michael@0 | 13 | var keys = ['L', 'l', 'b', 'x', 'l']; |
michael@0 | 14 | |
michael@0 | 15 | function changeKeys() |
michael@0 | 16 | { |
michael@0 | 17 | var box = document.getElementById('d'); |
michael@0 | 18 | for (var b = 0; b < 5; b++) |
michael@0 | 19 | box.childNodes[b * 2].accessKey = keys[b]; |
michael@0 | 20 | |
michael@0 | 21 | document.documentElement.className=''; |
michael@0 | 22 | } |
michael@0 | 23 | |
michael@0 | 24 | ]]> |
michael@0 | 25 | </script> |
michael@0 | 26 | |
michael@0 | 27 | <hbox align="start"> |
michael@0 | 28 | <label control="b1">Label1</label><textbox id="b1" accesskey="L" size="2"/> |
michael@0 | 29 | <label control="b2">Label2</label><textbox id="b2" accesskey="l" size="2"/> |
michael@0 | 30 | <label control="b3">Label3</label><textbox id="b3" accesskey="b" size="2"/> |
michael@0 | 31 | <label control="b4">Label4</label><textbox id="b4" accesskey="x" size="2"/> |
michael@0 | 32 | <label control="b5" maxwidth="50">Quite a long label. Hopefully it will wrap</label><textbox id="b5" accesskey="l" size="2"/> |
michael@0 | 33 | </hbox> |
michael@0 | 34 | |
michael@0 | 35 | <hbox id="d" align="start"> |
michael@0 | 36 | <label control="d1">Label1</label><textbox id="d1" accesskey="z" size="2"/> |
michael@0 | 37 | <label control="d2">Label2</label><textbox id="d2" size="2"/> |
michael@0 | 38 | <label control="d3">Label3</label><textbox id="d3" accesskey="t" size="2"/> |
michael@0 | 39 | <label control="d4">Label4</label><textbox id="d4" accesskey="b" size="2"/> |
michael@0 | 40 | <label control="d5" maxwidth="50">Quite a long label. Hopefully it will wrap</label><textbox id="d5" accesskey="l" size="2"/> |
michael@0 | 41 | </hbox> |
michael@0 | 42 | |
michael@0 | 43 | </window> |