accessible/tests/mochitest/states/test_popup.xul

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/accessible/tests/mochitest/states/test_popup.xul	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,55 @@
     1.4 +<?xml version="1.0"?>
     1.5 +<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
     1.6 +<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css"
     1.7 +                 type="text/css"?>
     1.8 +
     1.9 +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    1.10 +        title="XUL popup attribute test">
    1.11 +
    1.12 +  <script type="application/javascript"
    1.13 +          src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js" />
    1.14 +
    1.15 +  <script type="application/javascript"
    1.16 +          src="../common.js" />
    1.17 +  <script type="application/javascript"
    1.18 +          src="../role.js" />
    1.19 +  <script type="application/javascript"
    1.20 +          src="../states.js" />
    1.21 +
    1.22 +  <script type="application/javascript">
    1.23 +  <![CDATA[
    1.24 +    function doTest()
    1.25 +    {
    1.26 +      // label with popup
    1.27 +      testStates("labelWithPopup", STATE_HASPOPUP);
    1.28 +
    1.29 +      SimpleTest.finish();
    1.30 +    }
    1.31 +
    1.32 +    SimpleTest.waitForExplicitFinish();
    1.33 +    addA11yLoadEvent(doTest);
    1.34 +  ]]>
    1.35 +  </script>
    1.36 +
    1.37 +  <hbox flex="1" style="overflow: auto;">
    1.38 +    <body xmlns="http://www.w3.org/1999/xhtml">
    1.39 +      <a target="_blank"
    1.40 +         href="https://bugzilla.mozilla.org/show_bug.cgi?id=504252"
    1.41 +         title="Expose STATE_HASPOPUP on XUL elements that have an @popup attribute">
    1.42 +        Mozilla Bug 504252
    1.43 +      </a><br/>
    1.44 +      <p id="display"></p>
    1.45 +      <div id="content" style="display: none">
    1.46 +      </div>
    1.47 +      <pre id="test">
    1.48 +      </pre>
    1.49 +    </body>
    1.50 +
    1.51 +    <!-- label with popup attribute -->
    1.52 +    <label id="labelWithPopup" value="file name"
    1.53 +           popup="fileContext"
    1.54 +           tabindex="0"/>
    1.55 +  </hbox>
    1.56 +
    1.57 +</window>
    1.58 +

mercurial