accessible/tests/mochitest/states/test_editablebody.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/accessible/tests/mochitest/states/test_editablebody.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,46 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html>
     1.6 +<!--
     1.7 +https://bugzilla.mozilla.org/show_bug.cgi?id=454997
     1.8 +-->
     1.9 +<head>
    1.10 +  <title>nsIAccessible states tests of contenteditable body</title>
    1.11 +  <link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css" />
    1.12 +
    1.13 +  <script type="application/javascript"
    1.14 +          src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
    1.15 +
    1.16 +  <script type="application/javascript"
    1.17 +          src="../common.js"></script>
    1.18 +  <script type="application/javascript"
    1.19 +          src="../role.js"></script>
    1.20 +  <script type="application/javascript"
    1.21 +          src="../states.js"></script>
    1.22 +
    1.23 +  <script type="application/javascript">
    1.24 +    function doTest()
    1.25 +    {
    1.26 +      testStates(document, 0, EXT_STATE_EDITABLE);
    1.27 +      testStates("p", 0, EXT_STATE_EDITABLE);
    1.28 +
    1.29 +      SimpleTest.finish();
    1.30 +    }
    1.31 +
    1.32 +    SimpleTest.waitForExplicitFinish();
    1.33 +    addA11yLoadEvent(doTest);
    1.34 +  </script>
    1.35 +</head>
    1.36 +
    1.37 +<body contentEditable="true">
    1.38 +
    1.39 +  <a target="_blank"
    1.40 +     title="nsIAccessible states tests of contenteditable body"
    1.41 +     href="https://bugzilla.mozilla.org/show_bug.cgi?id=454997">Mozilla Bug 454997</a>
    1.42 +  <p id="display"></p>
    1.43 +  <div id="content" style="display: none"></div>
    1.44 +  <pre id="test">
    1.45 +  </pre>
    1.46 +
    1.47 +  <p id="p">hello</p>
    1.48 +</body>
    1.49 +</html>

mercurial