Permalink
Browse files

FBTest, check watch entries after a timeout (needs proper fix)

  • Loading branch information...
1 parent 2fde4be commit 77f4c0efd1ca10827451b3415c466966063f667a @janodvarko janodvarko committed Oct 5, 2012
Showing with 8 additions and 2 deletions.
  1. +8 −2 tests/content/script/watch/5639/issue5639.js
@@ -36,8 +36,14 @@ function testDeleteAllWatches(callback, panelNode, targetSelector, watchExpressi
var target = panelNode.querySelector(targetSelector);
FBTest.executeContextMenuCommand(target, "fbDeleteAllWatches", function()
{
- FBTest.compare(0, countWatches(panelNode), "There should not be any watch");
- callback();
+ // xxxHonza: needs to be done properly.
+ // The code should handle a mutation event or periodically check (for
+ // limited amount of time) if the watch window is empty.
+ setTimeout(function()
+ {
+ FBTest.compare(0, countWatches(panelNode), "There should not be any watch");
+ callback();
+ }, 1000);
});
});
}

0 comments on commit 77f4c0e

Please sign in to comment.