Merge pull request #71 from ScottDowne/t1083

[#1083] youtube tests no longer call currenttime before video is loaded....
This commit is contained in:
ScottDowne 2012-05-22 13:39:49 -07:00
Родитель 7a83050e64 4faf13c7e2
Коммит 351e9bfac8
1 изменённых файлов: 15 добавлений и 2 удалений

Просмотреть файл

@ -219,8 +219,16 @@ asyncTest("Update Timer", function () {
p2.play();
});
p2.volume( 0 ).currentTime(3);
var ready = function() {
p2.off( "canplaythrough", ready );
p2.volume( 0 ).currentTime(3);
};
if ( p2.readyState() >= 4 ) {
ready();
} else {
p2.on( "canplaythrough", ready );
}
});
asyncTest("Plugin Factory", function () {
@ -586,7 +594,12 @@ asyncTest( "YouTube ended event", function() {
ok( true, "YouTube is successfully firing the ended event" );
start();
});
pop.play( 150 );
pop.exec( 5, function(){
pop.currentTime( 150 );
});
pop.play();
});
asyncTest( "youtube player gets a proper _teardown", function() {