Permalink
Browse files

fixed tests that always fail due to slow execution

  • Loading branch information...
cadecairos committed May 18, 2011
1 parent c617f52 commit e89850eb4994b5b27e84c830ba99b0daf931dee1
Showing with 4 additions and 2 deletions.
  1. +4 −2 plugins/subtitle/popcorn.subtitle.unit.js
@@ -51,6 +51,9 @@ test("Popcorn Subtitle Plugin", function () {
popped.exec( 0.5, function() {
+ equals( subtitlediv.innerHTML, "this is the first subtitle of 2011", "subtitle displaying correct information" );
+ plus();
+
// capturing location now, to check against later,
// a subtitle must be displayed to get valid data
// which is why we do this in exec
@@ -62,8 +65,7 @@ test("Popcorn Subtitle Plugin", function () {
popped.media.style.left = "400px";
popped.media.style.top = "600px";
- equals( subtitlediv.innerHTML, "this is the first subtitle of 2011", "subtitle displaying correct information" );
- plus();
+
});
popped.exec( 1.5, function() {

0 comments on commit e89850e

Please sign in to comment.