From: Christopher De Cairos Date: Thu, 8 Sep 2011 20:59:23 +0000 (-0400) Subject: fixed unit test issue where setting the medias current time in the parserXML unit... X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=refs%2Fheads%2Ft689;p=popcorn-js.git fixed unit test issue where setting the medias current time in the parserXML unit test would not automatically start playback and the tests would time out because no events would fire. --- diff --git a/parsers/parserXML/popcorn.parserXML.unit.js b/parsers/parserXML/popcorn.parserXML.unit.js index 9b4a963..04c85ca 100644 --- a/parsers/parserXML/popcorn.parserXML.unit.js +++ b/parsers/parserXML/popcorn.parserXML.unit.js @@ -11,6 +11,7 @@ test("Popcorn 0.1 XML Parser Plugin", function () { start(); // clean up added events after tests clearInterval( interval ); + poppercorn.pause(); } } @@ -55,7 +56,7 @@ test("Popcorn 0.1 XML Parser Plugin", function () { poppercorn.parseXML( "data/unit.XML", function() { - poppercorn.currentTime(5); + poppercorn.currentTime(5).play(); }); });