1
0
mirror of https://github.com/videojs/video.js.git synced 2024-12-27 02:43:45 +02:00

Block defineSetter test for older IE

__defineSetter__ doesn't work on some versions of IE, so just ignore the volume/mute toggle tests when run on those browsers.
This commit is contained in:
David LaPalomento 2013-03-05 18:07:35 -05:00
parent ad98bebf55
commit f1e90d65f2

View File

@ -2,6 +2,10 @@ module('HTML5');
test('should detect whether the volume can be changed', function(){
var testVid, ConstVolumeVideo;
if (!{}['__defineSetter__']) {
ok(true, 'your browser does not support this test, skipping it');
return;
}
testVid = vjs.TEST_VID;
ConstVolumeVideo = function(){
this.volume = 1;