Bug 815646 - enable logging for accessible/states/test_link.html

This commit is contained in:
Alexander Surkov 2012-11-30 11:09:41 +09:00
parent 465c1134c9
commit 94853961be
2 changed files with 11 additions and 6 deletions

View File

@ -176,10 +176,13 @@ static void
LogPresShell(nsIDocument* aDocumentNode)
{
nsIPresShell* ps = aDocumentNode->GetShell();
printf("presshell: %p, is %s destroying", static_cast<void*>(ps),
(ps->IsDestroying() ? "" : "not"));
nsIScrollableFrame *sf = ps ?
ps->GetRootScrollFrameAsScrollableExternal() : nullptr;
printf("presshell: %p", static_cast<void*>(ps));
nsIScrollableFrame* sf = nullptr;
if (ps) {
printf(", is %s destroying", (ps->IsDestroying() ? "" : "not"));
sf = ps->GetRootScrollFrameAsScrollable();
}
printf(", root scroll frame: %p", static_cast<void*>(sf));
}

View File

@ -21,7 +21,7 @@
src="../events.js"></script>
<script type="application/javascript">
//gA11yEventDumpToConsole = true; // debug stuff
gA11yEventDumpToConsole = true; // debug stuff
var gLinkWindow = null;
function closeDocChecker()
@ -86,9 +86,11 @@
testStates("link_traversed", 0, 0, STATE_TRAVERSED);
// a: traversed state
enableLogging("docload"); // debug stuff
gQueue = new eventQueue();
gQueue.push(new clickLink("link_traversed"));
gQueue.onFinish = function() { gLinkWindow.close(); }
gQueue.onFinish = function() { gLinkWindow.close(); disableLogging(); }
gQueue.invoke(); // will call SimpleTest.finsih();
}