From: ScottDowne Date: Fri, 17 Dec 2010 15:23:25 +0000 (-0500) Subject: [#228] tighten up test run time X-Git-Tag: v0.2~34^2~5 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=51b978801161e0eb47c1f5620e27c1ac18a1fc0f;p=popcorn-js.git [#228] tighten up test run time --- diff --git a/test/popcorn.unit.js b/test/popcorn.unit.js index c188271..38d470e 100644 --- a/test/popcorn.unit.js +++ b/test/popcorn.unit.js @@ -801,10 +801,10 @@ test("Index Integrity", function () { p.ff({ id: "removeable-track-event", start: 40, - end: 45 + end: 41 }); - p.currentTime(39).pause(); + p.currentTime(40).pause(); stop(); @@ -817,10 +817,10 @@ test("Index Integrity", function () { p.listen("timeupdate", function () { - if ( p.roundTime() > 40 && p.roundTime() < 46 && !hasrun ) { + if ( p.roundTime() > 40 && p.roundTime() < 42 && !hasrun ) { } - if ( p.roundTime() > 40 && p.roundTime() < 46 && hasrun && !lastrun ) { + if ( p.roundTime() > 40 && p.roundTime() < 42 && hasrun && !lastrun ) { lastrun = true; @@ -829,7 +829,7 @@ test("Index Integrity", function () { start(); } - if ( p.roundTime() >= 46 && !hasrun ) { + if ( p.roundTime() >= 42 && !hasrun ) { hasrun = true; p.pause(); @@ -848,7 +848,7 @@ test("Index Integrity", function () { - p.currentTime(39).play(); + p.currentTime(40).play();