Fix the mw.loader when running test with a file:// URL
authorAntoine Musso <hashar@users.mediawiki.org>
Sat, 21 May 2011 09:16:59 +0000 (09:16 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Sat, 21 May 2011 09:16:59 +0000 (09:16 +0000)
commit82c8894c35d5f28c1cd3757b9474f72f31b4b4d1
treef76afbcdf98f29519e69e826e545221edb889807
parentd5b60ac6a674394cb99c25deea431c7893de0e0a
Fix the mw.loader when running test with a file:// URL

When running the tests using a local url, the href will include index.html
which was not stripped by the regular expression.  This patch capture path
tokens which are not followed by 'index.html' (regexp lookahead).

Let us run tests using file://path/tests/qunit/index.html
tests/qunit/suites/resources/mediawiki/mediawiki.js