mediawiki.user.test: Fix getGroups() regression
authorTimo Tijhof <ttijhof@wikimedia.org>
Sun, 2 Sep 2012 19:43:08 +0000 (21:43 +0200)
committerTimo Tijhof <ttijhof@wikimedia.org>
Sun, 2 Sep 2012 19:43:08 +0000 (21:43 +0200)
commit251a532c1f10b5d35d31a981b9ee97da1230792e
treefe4d949f24da037195a1c5c1e134ef2ebc3c13e5
parent9a5695d4c1449172fed4433003fefc4668be017a
mediawiki.user.test: Fix getGroups() regression

* Test depended on sort order, fixing by looking up index
  instead.

  Order is not documented and should not be depended on,
  therefore updating the test instead of changing the output.

* Follows-up 1e8992ca7489e620d157d9a50d9aa5e611b84887

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