Bug 1173 - Workaround Safari video onerror regression

This commit is contained in:
Jon Buckley 2012-07-20 14:56:45 -04:00
Родитель f3532ac804
Коммит fbd127e307
1 изменённых файлов: 10 добавлений и 0 удалений

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

@ -27,12 +27,22 @@ asyncTest( "Unsupported video error", function() {
popcorn.on( "error", function() {
clearTimeout( timeout );
equal( popcorn.error.code, 4, "Unsupported video reports error code 4." );
popcorn.destroy();
start();
});
unsupported.src = "data:video/x-unsupported,0";
// Safari won't pass this test, so we'll just skip it
// https://bugs.webkit.org/show_bug.cgi?id=88423
// https://webmademovies.lighthouseapp.com/projects/63272-popcornjs/tickets/1226
var timeout = setTimeout(function() {
ok( true, "Safari doesn't pass this test, so skip it" );
popcorn.destroy();
start();
}, 1000);
});
test( "noConflict", function() {