From e89850eb4994b5b27e84c830ba99b0daf931dee1 Mon Sep 17 00:00:00 2001 From: Christopher De Cairos Date: Wed, 18 May 2011 09:47:02 -0400 Subject: [PATCH] fixed tests that always fail due to slow execution --- plugins/subtitle/popcorn.subtitle.unit.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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() { -- 2.43.0