From: Christopher De Cairos Date: Wed, 18 May 2011 13:47:02 +0000 (-0400) Subject: fixed tests that always fail due to slow execution X-Git-Tag: v0.6~9^2~3 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=e89850eb4994b5b27e84c830ba99b0daf931dee1;p=popcorn-js.git fixed tests that always fail due to slow execution --- diff --git a/plugins/subtitle/popcorn.subtitle.unit.js b/plugins/subtitle/popcorn.subtitle.unit.js index ac118c7..b7d75b8 100644 --- a/plugins/subtitle/popcorn.subtitle.unit.js +++ b/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() {