Don't try to delete Uint8Array
Phantomjs doesn't like deleting window.Uint8Array so just null it to test typed array feature detection.
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -1154,7 +1154,7 @@ test('has no effect if native HLS is available', function() { | ... | @@ -1154,7 +1154,7 @@ test('has no effect if native HLS is available', function() { |
1154 | 1154 | ||
1155 | test('is not supported on browsers without typed arrays', function() { | 1155 | test('is not supported on browsers without typed arrays', function() { |
1156 | var oldArray = window.Uint8Array; | 1156 | var oldArray = window.Uint8Array; |
1157 | delete window.Uint8Array; | 1157 | window.Uint8Array = null; |
1158 | ok(!videojs.Hls.isSupported(), 'HLS is not supported'); | 1158 | ok(!videojs.Hls.isSupported(), 'HLS is not supported'); |
1159 | 1159 | ||
1160 | // cleanup | 1160 | // cleanup | ... | ... |
-
Please register or sign in to post a comment