From 251c081c9bf82f3f0312643665b396dcf851ce64 Mon Sep 17 00:00:00 2001 From: ScottDowne Date: Tue, 6 Mar 2012 15:54:43 -0500 Subject: [PATCH] [#948] safari reports a different duration, probably because it is not using the ogg. Instead test against the duration, so it works on all browser. --- test/popcorn.unit.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/popcorn.unit.js b/test/popcorn.unit.js index e17aa4f7..5e6e2a39 100644 --- a/test/popcorn.unit.js +++ b/test/popcorn.unit.js @@ -3802,8 +3802,8 @@ test( "end undefined or false should never be fired", function() { $pop.neverEndingStory({}); $pop.neverEndingStory({ end: false }); $pop.neverEndingStory({ end: undefined }); - $pop.endingStory({ end: 64.541666 }); - $pop.play( 64.541666 ); + $pop.endingStory({ end: $pop.duration() }); + $pop.currentTime( $pop.duration() ); }); module( "Popcorn XHR" );