(bug 40834) mw.loader: Fix comma-joined 404 error.
authorTimo Tijhof <ttijhof@wikimedia.org>
Sat, 6 Oct 2012 09:05:36 +0000 (11:05 +0200)
committerTimo Tijhof <ttijhof@wikimedia.org>
Sun, 7 Oct 2012 07:27:28 +0000 (09:27 +0200)
commit7f817ae7342beafd35c5e48ac69f8eb346014c54
treef2dbe10b431c103e7feee8594cef9e7000b8e8cd
parent22c7d8235103c412ec8f741fb3efe4f880ef6cb0
(bug 40834) mw.loader: Fix comma-joined 404 error.

It passed an array instead of a url to addLink so internally
Array.prototype.toString happened which joins by comma.

In debug mode modules with more than 1 stylesheet were 404 error
as it was trying to load 'http://.../foo.css,http://.../bar.css'.

Unit tests didn't catch it because they all only tested an array
with 1 url. Updated the test to assert this from now on.

Follows-up I3e8227ddb87fd9441071ca935439fc6467751dab.

Change-Id: I32a79af637acb782e07bbae413b0f007350096c3
resources/mediawiki/mediawiki.js
tests/qunit/suites/resources/mediawiki/mediawiki.test.js