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="Accessibility Caret Offset 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 | <script type="application/javascript" |
michael@0 | 12 | src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script> |
michael@0 | 13 | |
michael@0 | 14 | <script type="application/javascript" |
michael@0 | 15 | src="../common.js"></script> |
michael@0 | 16 | <script type="application/javascript" |
michael@0 | 17 | src="../role.js"></script> |
michael@0 | 18 | <script type="application/javascript" |
michael@0 | 19 | src="../states.js"></script> |
michael@0 | 20 | <script type="application/javascript" |
michael@0 | 21 | src="../events.js"></script> |
michael@0 | 22 | <script type="application/javascript" |
michael@0 | 23 | src="../browser.js"></script> |
michael@0 | 24 | |
michael@0 | 25 | <script type="application/javascript"> |
michael@0 | 26 | <![CDATA[ |
michael@0 | 27 | |
michael@0 | 28 | //////////////////////////////////////////////////////////////////////////// |
michael@0 | 29 | // Tests |
michael@0 | 30 | |
michael@0 | 31 | //gA11yEventDumpID = "eventdump"; // debug stuff |
michael@0 | 32 | //gA11yEventDumpToConsole = true; // debug |
michael@0 | 33 | |
michael@0 | 34 | var gQueue = null; |
michael@0 | 35 | function doTests() |
michael@0 | 36 | { |
michael@0 | 37 | gQueue = new eventQueue(); |
michael@0 | 38 | gQueue.push(new setCaretOffset(urlbarInput(), -1, urlbarInput())); |
michael@0 | 39 | gQueue.push(new setCaretOffset(urlbarInput(), 0)); |
michael@0 | 40 | gQueue.onFinish = function() |
michael@0 | 41 | { |
michael@0 | 42 | closeBrowserWindow(); |
michael@0 | 43 | } |
michael@0 | 44 | |
michael@0 | 45 | gQueue.invoke(); |
michael@0 | 46 | } |
michael@0 | 47 | |
michael@0 | 48 | SimpleTest.waitForExplicitFinish(); |
michael@0 | 49 | openBrowserWindow(doTests, "about:"); |
michael@0 | 50 | ]]> |
michael@0 | 51 | </script> |
michael@0 | 52 | |
michael@0 | 53 | <vbox flex="1" style="overflow: auto;"> |
michael@0 | 54 | <body xmlns="http://www.w3.org/1999/xhtml"> |
michael@0 | 55 | <a target="_blank" |
michael@0 | 56 | href="https://bugzilla.mozilla.org/show_bug.cgi?id=723833" |
michael@0 | 57 | title="IAccessibleText::setCaretOffset on location or search bar causes focus to jump"> |
michael@0 | 58 | Mozilla Bug 723833 |
michael@0 | 59 | </a> |
michael@0 | 60 | <p id="display"></p> |
michael@0 | 61 | <div id="content" style="display: none"> |
michael@0 | 62 | </div> |
michael@0 | 63 | <pre id="test"> |
michael@0 | 64 | </pre> |
michael@0 | 65 | </body> |
michael@0 | 66 | |
michael@0 | 67 | <vbox id="eventdump"></vbox> |
michael@0 | 68 | </vbox> |
michael@0 | 69 | </window> |