Bug 917271 - use public API to check if bookmarks are still updating rather than private _pendingStmt, rs=test-only

This commit is contained in:
Gijs Kruitbosch 2013-09-20 14:15:46 +02:00
parent d52551e57b
commit 47d56b22a2

View File

@ -20,8 +20,8 @@ function test() {
tab.linkedBrowser.addEventListener("load", (function(event) {
tab.linkedBrowser.removeEventListener("load", arguments.callee, true);
if (BookmarkingUI._pendingStmt) {
waitForCondition(function() !BookmarkingUI._pendingStmt, finishTest, "BookmarkingUI held pending statement for too long");
if (BookmarkingUI.status == BookmarkingUI.STATUS_UPDATING) {
waitForCondition(function() BookmarkingUI.status != BookmarkingUI.STATUS_UPDATING, finishTest, "BookmarkingUI was updating for too long");
} else {
finishTest();
}