mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-24 00:03:56 +00:00
Remove some redundant tests
Follow-up to b1ade19388
.
Change-Id: Iba4a2d7886798ba59b811dd6be4f51517e476b24
This commit is contained in:
parent
999893fd25
commit
c2e0cccbfe
|
@ -357,7 +357,7 @@
|
|||
clock.reset();
|
||||
} );
|
||||
|
||||
QUnit.test( 'Only load the viewer on a valid hash (modern browsers)', function ( assert ) {
|
||||
QUnit.test( 'Only load the viewer on a valid hash', function ( assert ) {
|
||||
var bootstrap;
|
||||
|
||||
location.hash = '';
|
||||
|
@ -367,34 +367,12 @@
|
|||
return hashTest( '/media', bootstrap, assert );
|
||||
} );
|
||||
|
||||
QUnit.test( 'Only load the viewer on a valid hash (old browsers)', function ( assert ) {
|
||||
QUnit.test( 'Load the viewer on a legacy hash', function ( assert ) {
|
||||
var bootstrap;
|
||||
|
||||
location.hash = '';
|
||||
|
||||
bootstrap = createBootstrap();
|
||||
bootstrap.browserHistory = undefined;
|
||||
|
||||
return hashTest( '/media', bootstrap, assert );
|
||||
} );
|
||||
|
||||
QUnit.test( 'Load the viewer on a legacy hash (modern browsers)', function ( assert ) {
|
||||
var bootstrap;
|
||||
|
||||
location.hash = '';
|
||||
|
||||
bootstrap = createBootstrap();
|
||||
|
||||
return hashTest( 'mediaviewer', bootstrap, assert );
|
||||
} );
|
||||
|
||||
QUnit.test( 'Load the viewer on a legacy hash (old browsers)', function ( assert ) {
|
||||
var bootstrap;
|
||||
|
||||
location.hash = '';
|
||||
|
||||
bootstrap = createBootstrap();
|
||||
bootstrap.browserHistory = undefined;
|
||||
|
||||
return hashTest( 'mediaviewer', bootstrap, assert );
|
||||
} );
|
||||
|
|
Loading…
Reference in a new issue