Bug 810554 - intermittent failure accessible/states/test_link.html | Test timed out, r=tbsaunde

This commit is contained in:
Alexander Surkov 2012-11-14 18:45:46 +09:00
parent c3b47e2cb1
commit e6d0f0eb40

View File

@ -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();
}