Fix and update i18n QUnit test breakages
authorTimo Tijhof <ttijhof@wikimedia.org>
Fri, 14 Sep 2012 02:57:57 +0000 (04:57 +0200)
committerNiklas Laxström <niklas.laxstrom@gmail.com>
Sun, 16 Sep 2012 02:13:32 +0000 (02:13 +0000)
commit7c14d526470d4b00535f6c72f9af4d5c032832fe
tree97c84245e79a19a61a7c18542d2ef4ef72c8c920
parent5c638f246ca9de33fa259ae5d5ce0e300ced1466
Fix and update i18n QUnit test breakages

* mediawiki.language.test:
  Was broken for a while because the setup/teardown set
  language.data instead of language.data.values so each test
  resulted in:
  > TypeError: Cannot read property 'en' of undefined

  Also stored the copy in the QUnit module context instead
  of in the shared scope.

* mediawiki.cldr.test: Update QUnit pattern.
  - Removed redundant Initial check
  - '--' from test name
  - test()'s expect count argument
  - Superfluous comments, its just assert.equal it should go
    without saying at this point through the unit tests what
    the 2nd and 3rd are.

* mediawiki.cldr.test:
  Fixed trailing comma in commented out code and whitespace
  warnings.

Change-Id: I95de3bb551efd7993cfcfba4a5cc3f310e7d6805
tests/qunit/suites/resources/mediawiki/mediawiki.cldr.test.js
tests/qunit/suites/resources/mediawiki/mediawiki.language.test.js