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:
Gergő Tisza 2014-06-25 22:10:56 +00:00
parent eef5fe7897
commit 033e7debcf

View file

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