1
0
mirror of https://github.com/videojs/video.js.git synced 2025-02-02 11:34:50 +02:00

Fixed canPlayType patch tests on Android

This commit is contained in:
Steve Heffernan 2014-03-27 11:19:21 -07:00
parent 2079af7320
commit 88403221a9

View File

@ -45,6 +45,9 @@ test('patchCanPlayType and unpatchCanPlayType are available on Html5 object', fu
});
test('patchCanPlayType patches canplaytype with our function, conditionally', function() {
// the patch runs automatically so we need to first unpatch
vjs.Html5.unpatchCanPlayType();
var oldAV = vjs.ANDROID_VERSION,
video = document.createElement('video'),
canPlayType = vjs.TEST_VID.constructor.prototype.canPlayType,