Skip to content

Commit

Permalink
[#1244] Few fixes in test and something I missed in the rebase.
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottDowne committed Feb 27, 2013
1 parent d310100 commit ec6473e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion wrappers/youtube/popcorn.HTMLYouTubeVideoElement.js
Expand Up @@ -194,7 +194,7 @@
// fake ready event
firstPlay = false;

addPlayerReadyCallback( function() {
addMediaReadyCallback( function() {
bufferedInterval = setInterval( monitorBuffered, 50 );
});

Expand Down
6 changes: 2 additions & 4 deletions wrappers/youtube/popcorn.HTMLYouTubeVideoElement.unit.js
Expand Up @@ -69,10 +69,10 @@ var testData = {
equal( video.height, 300, "Returned expected parent element height" );
});

asyncTest( "YouTube 02 - buffered", function() {
asyncTest( "YouTube 05 - buffered", function() {

var video = testData.createMedia( "#video" ),
buffered = video.buffered;
buffered = video.buffered;

video.addEventListener( "progress", function onProgress() {
var end = buffered.end(0);
Expand All @@ -98,9 +98,7 @@ var testData = {
ok( e, "selecting a time range > 0 throws an error" );
}
});

}

};

// YouTube tends to fail when the iframes live in the qunit-fixture
Expand Down

0 comments on commit ec6473e

Please sign in to comment.