mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
Bug 810554 - intermittent failure accessible/states/test_link.html | Test timed out, r=tbsaunde
This commit is contained in:
parent
def6cea2cd
commit
37d4fa3031
@ -23,13 +23,14 @@
|
||||
<script type="application/javascript">
|
||||
//gA11yEventDumpToConsole = true; // debug stuff
|
||||
|
||||
var gLinkWindow = null;
|
||||
function closeDocChecker()
|
||||
{
|
||||
this.__proto__ = new asyncInvokerChecker(EVENT_DOCUMENT_LOAD_COMPLETE);
|
||||
|
||||
this.check = function closeDocChecker_check(aEvent)
|
||||
{
|
||||
aEvent.accessible.rootDocument.window.close();
|
||||
gLinkWindow = aEvent.accessible.rootDocument.window;
|
||||
}
|
||||
|
||||
this.match = function closeDocChecker_match(aEvent)
|
||||
@ -56,8 +57,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
gA11yEventDumpToConsole = true;
|
||||
|
||||
var gQueue = null;
|
||||
function doTest()
|
||||
{
|
||||
@ -89,6 +88,7 @@ gA11yEventDumpToConsole = true;
|
||||
// a: traversed state
|
||||
gQueue = new eventQueue();
|
||||
gQueue.push(new clickLink("link_traversed"));
|
||||
gQueue.onFinish = function() { gLinkWindow.close(); }
|
||||
gQueue.invoke(); // will call SimpleTest.finsih();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user