Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
michael@0 | 1 | <!DOCTYPE html> |
michael@0 | 2 | <html> |
michael@0 | 3 | <!-- |
michael@0 | 4 | https://bugzilla.mozilla.org/show_bug.cgi?id=454997 |
michael@0 | 5 | --> |
michael@0 | 6 | <head> |
michael@0 | 7 | <title>nsIAccessible states tests of contenteditable body</title> |
michael@0 | 8 | <link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css" /> |
michael@0 | 9 | |
michael@0 | 10 | <script type="application/javascript" |
michael@0 | 11 | src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script> |
michael@0 | 12 | |
michael@0 | 13 | <script type="application/javascript" |
michael@0 | 14 | src="../common.js"></script> |
michael@0 | 15 | <script type="application/javascript" |
michael@0 | 16 | src="../role.js"></script> |
michael@0 | 17 | <script type="application/javascript" |
michael@0 | 18 | src="../states.js"></script> |
michael@0 | 19 | |
michael@0 | 20 | <script type="application/javascript"> |
michael@0 | 21 | function doTest() |
michael@0 | 22 | { |
michael@0 | 23 | testStates(document, 0, EXT_STATE_EDITABLE); |
michael@0 | 24 | testStates("p", 0, EXT_STATE_EDITABLE); |
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 | </script> |
michael@0 | 32 | </head> |
michael@0 | 33 | |
michael@0 | 34 | <body contentEditable="true"> |
michael@0 | 35 | |
michael@0 | 36 | <a target="_blank" |
michael@0 | 37 | title="nsIAccessible states tests of contenteditable body" |
michael@0 | 38 | href="https://bugzilla.mozilla.org/show_bug.cgi?id=454997">Mozilla Bug 454997</a> |
michael@0 | 39 | <p id="display"></p> |
michael@0 | 40 | <div id="content" style="display: none"></div> |
michael@0 | 41 | <pre id="test"> |
michael@0 | 42 | </pre> |
michael@0 | 43 | |
michael@0 | 44 | <p id="p">hello</p> |
michael@0 | 45 | </body> |
michael@0 | 46 | </html> |