Remove some redundant tests

Follow-up to b1ade19388.

Change-Id: Iba4a2d7886798ba59b811dd6be4f51517e476b24
This commit is contained in:
Bartosz Dziewoński 2023-05-02 15:50:53 +02:00
parent 999893fd25
commit c2e0cccbfe

View file

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