mediawiki.Title.test: Add test for space collapsing
authorKrinkle <krinkle@users.mediawiki.org>
Sat, 10 Sep 2011 22:33:11 +0000 (22:33 +0000)
committerKrinkle <krinkle@users.mediawiki.org>
Sat, 10 Sep 2011 22:33:11 +0000 (22:33 +0000)
commitc68aede585779a17a1b35e3f9de3594fd2407fbb
treee3f2ba2424cc6f605ec082364f9c37bc632a56f4
parent51054551b5e3b6e1eb388cefaba16674133dde44
mediawiki.Title.test: Add test for space collapsing
* When I first passed "Foobar___.js" to mw.Title and saw that it was stripping away (some) spaces, I thought it was a bug (since extension is part of the title and should be kept as is). Anyway, as it turns out it's not stripping them away because they are between 'title' and 'extension', it's a general rule that there should not two or more spaces next to each other in a title. Adding test to assert and confirm this behavior.
tests/qunit/suites/resources/mediawiki/mediawiki.Title.test.js