Bug 824662 - Intermittent test_takeFocus.html | Can't get accessible for plugin, r=tbsaunde

This commit is contained in:
Alexander Surkov 2013-03-07 14:48:48 +09:00
parent 2acc60f7a6
commit 8d089b8186
2 changed files with 8 additions and 7 deletions

View File

@ -42,12 +42,11 @@
////////////////////////////////////////////////////////////////////////////
// Test
gA11yEventDumpToConsole = true; // debug stuff
//gA11yEventDumpToConsole = true; // debug stuff
var gQueue = null;
function doTest()
{
enableLogging("tree");
gQueue = new eventQueue();
gQueue.push(new takeFocusInvoker("aria-link"));
@ -58,12 +57,16 @@
gQueue.push(new takeFocusInvoker(document));
gQueue.push(new takeFocusInvoker("lb_item2"));
gQueue.onFinish = function() { disableLogging(); }
gQueue.invoke(); // Will call SimpleTest.finish();
}
function waitForPlugin()
{
window.setTimeout((isAccessible("plugin") ? doTest : waitForPlugin), 0);
}
SimpleTest.waitForExplicitFinish();
addA11yLoadEvent(doTest);
addA11yLoadEvent(waitForPlugin);
</script>
</head>
@ -97,7 +100,7 @@
<span id="aria-link" role="link" tabindex="0">link</span>
<span id="aria-link2" role="link" tabindex="0">link</span>
<a id="link" href="">link</span>
<a id="link" href="">link</a>
<div role="listbox" aria-activedescendant="item1" id="container" tabindex="1">
<div role="option" id="item1">item1</div>

View File

@ -59,8 +59,6 @@
var gQueue = null;
function doTests()
{
disableLogging(); // from test_takeFocus.html
// Test focus events.
gQueue = new eventQueue();