1
0
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:
brandonocasey
2016-04-22 14:31:12 -04:00
committed by Pat O'Neill
parent 18cdf08c0e
commit 2e2dbde4b4
32 changed files with 2050 additions and 407 deletions

View File

@ -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');