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 | <!DOCTYPE html> |
michael@0 | 2 | <html> |
michael@0 | 3 | |
michael@0 | 4 | <head> |
michael@0 | 5 | <title>Generated content tests</title> |
michael@0 | 6 | <link rel="stylesheet" type="text/css" |
michael@0 | 7 | href="chrome://mochikit/content/tests/SimpleTest/test.css" /> |
michael@0 | 8 | |
michael@0 | 9 | <style> |
michael@0 | 10 | .gentext:before { |
michael@0 | 11 | content: "START" |
michael@0 | 12 | } |
michael@0 | 13 | .gentext:after { |
michael@0 | 14 | content: "END" |
michael@0 | 15 | } |
michael@0 | 16 | </style> |
michael@0 | 17 | |
michael@0 | 18 | <script type="application/javascript" |
michael@0 | 19 | src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script> |
michael@0 | 20 | |
michael@0 | 21 | <script type="application/javascript" |
michael@0 | 22 | src="../common.js"></script> |
michael@0 | 23 | <script type="application/javascript" |
michael@0 | 24 | src="../role.js"></script> |
michael@0 | 25 | |
michael@0 | 26 | <script type="application/javascript"> |
michael@0 | 27 | function doTest() |
michael@0 | 28 | { |
michael@0 | 29 | // :before and :after pseudo styles |
michael@0 | 30 | var accTree = { |
michael@0 | 31 | role: ROLE_SECTION, |
michael@0 | 32 | children: [ |
michael@0 | 33 | { |
michael@0 | 34 | role: ROLE_STATICTEXT, |
michael@0 | 35 | name: "START" |
michael@0 | 36 | }, |
michael@0 | 37 | { |
michael@0 | 38 | role: ROLE_TEXT_LEAF, |
michael@0 | 39 | name: "MIDDLE" |
michael@0 | 40 | }, |
michael@0 | 41 | { |
michael@0 | 42 | role: ROLE_STATICTEXT, |
michael@0 | 43 | name: "END" |
michael@0 | 44 | } |
michael@0 | 45 | ] |
michael@0 | 46 | }; |
michael@0 | 47 | |
michael@0 | 48 | testAccessibleTree("gentext", accTree); |
michael@0 | 49 | |
michael@0 | 50 | SimpleTest.finish(); |
michael@0 | 51 | } |
michael@0 | 52 | |
michael@0 | 53 | SimpleTest.waitForExplicitFinish(); |
michael@0 | 54 | addA11yLoadEvent(doTest); |
michael@0 | 55 | </script> |
michael@0 | 56 | </head> |
michael@0 | 57 | <body> |
michael@0 | 58 | |
michael@0 | 59 | <a target="_blank" |
michael@0 | 60 | title="Clean up our tree walker" |
michael@0 | 61 | href="https://bugzilla.mozilla.org/show_bug.cgi?id=530081"> |
michael@0 | 62 | Mozilla Bug 530081 |
michael@0 | 63 | </a> |
michael@0 | 64 | <p id="display"></p> |
michael@0 | 65 | <div id="content" style="display: none"></div> |
michael@0 | 66 | <pre id="test"> |
michael@0 | 67 | </pre> |
michael@0 | 68 | |
michael@0 | 69 | <div class="gentext" id="gentext">MIDDLE</div> |
michael@0 | 70 | </body> |
michael@0 | 71 | </html> |