Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | <?xml version="1.0"?> |
michael@0 | 2 | <?xml-stylesheet href="chrome://global/skin" type="text/css"?> |
michael@0 | 3 | <?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" |
michael@0 | 4 | type="text/css"?> |
michael@0 | 5 | |
michael@0 | 6 | <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" |
michael@0 | 7 | title="XUL popup attribute test"> |
michael@0 | 8 | |
michael@0 | 9 | <script type="application/javascript" |
michael@0 | 10 | src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js" /> |
michael@0 | 11 | |
michael@0 | 12 | <script type="application/javascript" |
michael@0 | 13 | src="../common.js" /> |
michael@0 | 14 | <script type="application/javascript" |
michael@0 | 15 | src="../role.js" /> |
michael@0 | 16 | <script type="application/javascript" |
michael@0 | 17 | src="../states.js" /> |
michael@0 | 18 | |
michael@0 | 19 | <script type="application/javascript"> |
michael@0 | 20 | <![CDATA[ |
michael@0 | 21 | function doTest() |
michael@0 | 22 | { |
michael@0 | 23 | // label with popup |
michael@0 | 24 | testStates("labelWithPopup", STATE_HASPOPUP); |
michael@0 | 25 | |
michael@0 | 26 | SimpleTest.finish(); |
michael@0 | 27 | } |
michael@0 | 28 | |
michael@0 | 29 | SimpleTest.waitForExplicitFinish(); |
michael@0 | 30 | addA11yLoadEvent(doTest); |
michael@0 | 31 | ]]> |
michael@0 | 32 | </script> |
michael@0 | 33 | |
michael@0 | 34 | <hbox flex="1" style="overflow: auto;"> |
michael@0 | 35 | <body xmlns="http://www.w3.org/1999/xhtml"> |
michael@0 | 36 | <a target="_blank" |
michael@0 | 37 | href="https://bugzilla.mozilla.org/show_bug.cgi?id=504252" |
michael@0 | 38 | title="Expose STATE_HASPOPUP on XUL elements that have an @popup attribute"> |
michael@0 | 39 | Mozilla Bug 504252 |
michael@0 | 40 | </a><br/> |
michael@0 | 41 | <p id="display"></p> |
michael@0 | 42 | <div id="content" style="display: none"> |
michael@0 | 43 | </div> |
michael@0 | 44 | <pre id="test"> |
michael@0 | 45 | </pre> |
michael@0 | 46 | </body> |
michael@0 | 47 | |
michael@0 | 48 | <!-- label with popup attribute --> |
michael@0 | 49 | <label id="labelWithPopup" value="file name" |
michael@0 | 50 | popup="fileContext" |
michael@0 | 51 | tabindex="0"/> |
michael@0 | 52 | </hbox> |
michael@0 | 53 | |
michael@0 | 54 | </window> |
michael@0 | 55 |