Add some temporary debug code to assist in fixing frequent orange Bug 562326.

This commit is contained in:
Graeme McCutcheon 2010-05-14 06:32:20 +01:00
Родитель 8570a2ccd4
Коммит 262937af05
1 изменённых файлов: 19 добавлений и 3 удалений

Просмотреть файл

@ -90,7 +90,11 @@
}, Ci.nsIThread.DISPATCH_NORMAL);
}
function onPageShow() {
function onPageShow(aEvent) {
ok(true, "[Bug 562326] pageshow event received for " + aEvent.target.URL);
ok(true, "[Bug 562326] Event target gBrowser.contentDocument? " +
(aEvent.target == gBrowser.contentDocument))
gBrowser.removeEventListener("pageshow", onPageShow, false);
// First, take a snapshot of the window without highlighting
@ -105,7 +109,13 @@
matchCase.doCommand();
// Turn on highlighting
gFindBar.toggleHighlight(true);
try {
gFindBar.toggleHighlight(true);
} catch (e) {
ok(false, "[Bug 562326] Mark this failure as Bug 526326...")
ok(false, "[Bug 562326] First toggleHighlight call failed " +
e.toString());
}
gFindBar.close();
// Take snapshot of highlighing
@ -114,7 +124,13 @@
// Now, remove the highlighting, and take a snapshot to compare
// to our original state
gFindBar.open();
gFindBar.toggleHighlight(false);
try {
gFindBar.toggleHighlight(false);
} catch (e) {
ok(false, "[Bug 562326] Mark this failure as Bug 526326...")
ok(false, "[Bug 562326] Second toggleHighlight call failed " +
e.toString());
}
gFindBar.close();
var unhighlightSnapshot = snapshotWindow(gWin);