Skip to content

Commit

Permalink
FBTest: use timeout to fix test-bot failure
Browse files Browse the repository at this point in the history
  • Loading branch information
janodvarko committed Oct 9, 2012
1 parent 4cabe93 commit 6fb6dda
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/content/script/2279/errorBreakpoints.js
Expand Up @@ -20,6 +20,7 @@ function runTest()
// toggle breakpoint // toggle breakpoint
FBTest.click(errBP); FBTest.click(errBP);


// xxxHonza: the timeout is a hack (but should fix test-bot failure)
setTimeout(function() setTimeout(function()
{ {
// test checked // test checked
Expand All @@ -32,7 +33,7 @@ function runTest()
FBTest.ok(!hasClass(objBox, "breakForError"), "Must be unchecked again"); FBTest.ok(!hasClass(objBox, "breakForError"), "Must be unchecked again");
FBTest.testDone(); FBTest.testDone();
}); });
}); }, 2000);
}); });


FBTest.progress("waiting for an error to appear"); FBTest.progress("waiting for an error to appear");
Expand Down

0 comments on commit 6fb6dda

Please sign in to comment.