From 033e7debcf2a944120d9bff6075d8cba154f7f38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20Tisza?= Date: Wed, 25 Jun 2014 22:10:56 +0000 Subject: [PATCH] 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 --- tests/qunit/mmv/provider/mmv.provider.Image.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/qunit/mmv/provider/mmv.provider.Image.test.js b/tests/qunit/mmv/provider/mmv.provider.Image.test.js index fb652e5ca..6879bf773 100644 --- a/tests/qunit/mmv/provider/mmv.provider.Image.test.js +++ b/tests/qunit/mmv/provider/mmv.provider.Image.test.js @@ -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; };