increase qunit coverage of mediawiki.html and mediawiki.util
authorTimo Tijhof <ttijhof@wikimedia.org>
Wed, 4 Apr 2012 20:48:46 +0000 (22:48 +0200)
committerTimo Tijhof <ttijhof@wikimedia.org>
Wed, 4 Apr 2012 20:48:46 +0000 (22:48 +0200)
commit63b833ab18086949cac5a045a8e3671e09a73f3c
tree804364cca1ff5b386f0b88ac3a552666720870d0
parentf94b0edb4800354e90f69d36025267fb92e00fad
increase qunit coverage of mediawiki.html and mediawiki.util

- mw.html
 * Adding test for mw.html.Raw
 * Adding more tests for mw.html.element

- mw.util
 * Minor coding style update (local variables)
 * Updating mw.util.addPortletLink to not create its own "#mw-panel",
 this was previously done for ./qunit/index.html (which has been
 removed) but when ran on [[Special:JavaScriptTest/qunit]] it collides
 with the existing "#mw-panel", so far didn't break anything but that
 was purely lucky. This element is redundant so taking it out of the
 html sample
 * Removing redundant clean up, #qunit-fixture is automatically cleaned
 after each test

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