From: ScottDowne Date: Mon, 29 Aug 2011 16:53:33 +0000 (-0400) Subject: [#685] fixed an issue where a footnote unit test was being run twice X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=00b8fefa6b163230668bd4997712eeb3fdba11c0;p=popcorn-js.git [#685] fixed an issue where a footnote unit test was being run twice --- diff --git a/plugins/footnote/popcorn.footnote.unit.js b/plugins/footnote/popcorn.footnote.unit.js index dbdf83f..f35c366 100755 --- a/plugins/footnote/popcorn.footnote.unit.js +++ b/plugins/footnote/popcorn.footnote.unit.js @@ -84,18 +84,19 @@ test("Popcorn Text Plugin", function () { plus(); popped.text({ - start: 0, // seconds - end: 3, // seconds + start: 5, // seconds + end: 6, // seconds text: "I am an alias", target: "textdiv" }); stop(); - popped.exec( 2, function() { + popped.exec( 5, function() { equal( textdiv.children[0].innerHTML , "I am an alias", "I am an alias set by Popcorn.p.text" ); plus(); - }).currentTime(1).play(); + popped.pause(); + }).currentTime(5).play(); });