From: stevenaw Date: Tue, 25 Jan 2011 22:34:02 +0000 (-0500) Subject: Fix minor unit test error [#290] X-Git-Tag: v0.3~15^2~6^2~4 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=ae99e651cd3bc3f5ed1d9653fe5ca9efcd584c62;p=popcorn-js.git Fix minor unit test error [#290] --- diff --git a/parsers/parserSRT/popcorn.parserSRT.unit.html b/parsers/parserSRT/popcorn.parserSRT.unit.html index f6ecffd..6f987c4 100644 --- a/parsers/parserSRT/popcorn.parserSRT.unit.html +++ b/parsers/parserSRT/popcorn.parserSRT.unit.html @@ -8,12 +8,12 @@ do not move - this must be called immediately prior to popcorn-api-draft.js --> - + + + - - - +

Popcorn 0.3 SRT parser Plug-in Test

diff --git a/parsers/parserSRT/popcorn.parserSRT.unit.js b/parsers/parserSRT/popcorn.parserSRT.unit.js index dc0ff2f..80e56c3 100644 --- a/parsers/parserSRT/popcorn.parserSRT.unit.js +++ b/parsers/parserSRT/popcorn.parserSRT.unit.js @@ -22,14 +22,13 @@ test("Popcorn 0.3 SRT Parser Plugin", function () { expect(expects); stop( 10000 ); - - alert("HI"); + // Allow load time setTimeout(function () { Popcorn.forEach(poppercorn.getTrackEvents(), function(evt) { if(evt._natives.type === "subtitle") { numSubs++; - key = Math.ceil(evt.start).toString(); + key = evt.start.toString(); equals(subs[key], evt.text , "Correct amounts" ); plus(); }