mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-17 04:43:18 +00:00
Fix image download test to not rely on assets outside the codebase
We should probably have a proper test image eventually, so that we can use e.g. image dimensions to double-check the results, but this way at least our tests won't get broken by unrelated changes in other repos. Change-Id: Iffffd94fde99c53da59217a5181ad0560fce314c
This commit is contained in:
parent
eef5fe7897
commit
033e7debcf
|
@ -164,7 +164,7 @@
|
|||
} );
|
||||
|
||||
QUnit.test( 'Image load with preloading supported', 1, function ( assert ) {
|
||||
var url = mw.config.get( 'wgScriptPath' ) + '/skins/Vector/images/search-ltr.png',
|
||||
var url = mw.config.get( 'wgExtensionAssetsPath' ) + '/MultimediaViewer/resources/mmv/img/expand.svg',
|
||||
imageProvider = new mw.mmv.provider.Image(),
|
||||
endsWith = function ( a, b ) { return a.indexOf( b ) === a.length - b.length; };
|
||||
|
||||
|
|
Loading…
Reference in a new issue