From ae99e651cd3bc3f5ed1d9653fe5ca9efcd584c62 Mon Sep 17 00:00:00 2001 From: stevenaw Date: Tue, 25 Jan 2011 17:34:02 -0500 Subject: [PATCH] Fix minor unit test error [#290] --- parsers/parserSRT/popcorn.parserSRT.unit.html | 8 ++++---- parsers/parserSRT/popcorn.parserSRT.unit.js | 5 ++--- 2 files changed, 6 insertions(+), 7 deletions(-) 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(); } -- 2.43.0