Skip to content

Commit

Permalink
fixed unit test issue where setting the medias current time in the pa…
Browse files Browse the repository at this point in the history
…rserXML unit test would not automatically start playback and the tests would time out because no events would fire.
  • Loading branch information
Christopher De Cairos committed Sep 8, 2011
1 parent cc53ad2 commit e41e339
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion parsers/parserXML/popcorn.parserXML.unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ test("Popcorn 0.1 XML Parser Plugin", function () {
start();
// clean up added events after tests
clearInterval( interval );
poppercorn.pause();
}
}

Expand Down Expand Up @@ -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();
});
});

0 comments on commit e41e339

Please sign in to comment.