mirror of
https://github.com/videojs/video.js.git
synced 2025-07-13 01:30:17 +02:00
@BrandonOCasey added audio and video track support. closes #3173
This commit is contained in:
committed by
Pat O'Neill
parent
18cdf08c0e
commit
2e2dbde4b4
@ -86,14 +86,13 @@ test('dispose removes the object element even before ready fires', function() {
|
||||
// This test appears to test bad functionaly that was fixed
|
||||
// so it's debateable whether or not it's useful
|
||||
let dispose = Flash.prototype.dispose;
|
||||
let mockFlash = {};
|
||||
let mockFlash = new MockFlash();
|
||||
let noop = function(){};
|
||||
|
||||
// Mock required functions for dispose
|
||||
mockFlash.off = noop;
|
||||
mockFlash.trigger = noop;
|
||||
mockFlash.el_ = {};
|
||||
mockFlash.textTracks = () => ([]);
|
||||
|
||||
dispose.call(mockFlash);
|
||||
strictEqual(mockFlash.el_, null, 'swf el is nulled');
|
||||
|
Reference in New Issue
Block a user