File tree 1 file changed +0
-24
lines changed
1 file changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -227,13 +227,6 @@ QUnit.test('should expose options and players properties for backward-compatibil
227
227
} ) ;
228
228
229
229
QUnit . test ( 'should expose DOM functions' , function ( assert ) {
230
- const origWarnLog = log . warn ;
231
- const warnLogs = [ ] ;
232
-
233
- log . warn = ( args ) => {
234
- warnLogs . push ( args ) ;
235
- } ;
236
-
237
230
const methods = [
238
231
'isEl' ,
239
232
'isTextNode' ,
@@ -252,24 +245,7 @@ QUnit.test('should expose DOM functions', function(assert) {
252
245
methods . forEach ( name => {
253
246
assert . strictEqual ( typeof videojs [ name ] , 'function' , `function videojs.${ name } ` ) ;
254
247
assert . strictEqual ( typeof Dom [ name ] , 'function' , `Dom.${ name } function exists` ) ;
255
-
256
- const oldMethod = Dom [ name ] ;
257
- let domCalls = 0 ;
258
-
259
- Dom [ name ] = ( ) => domCalls ++ ;
260
-
261
- videojs [ name ] ( ) ;
262
-
263
- assert . equal ( domCalls , 1 , `Dom.${ name } was called when videojs.${ name } is run.` ) ;
264
- assert . equal ( warnLogs . length , 1 , `videojs.${ name } logs a deprecation warning` ) ;
265
-
266
- // reset
267
- warnLogs . length = 0 ;
268
- Dom [ name ] = oldMethod ;
269
248
} ) ;
270
-
271
- // reset log
272
- log . warn = origWarnLog ;
273
249
} ) ;
274
250
275
251
QUnit . test ( 'ingest player div if data-vjs-player attribute is present on video parentNode' , function ( assert ) {
You can’t perform that action at this time.
0 commit comments