[tests] use core qunit-fixture properly
authorKrinkle <krinkle@users.mediawiki.org>
Sun, 5 Feb 2012 12:27:20 +0000 (12:27 +0000)
committerKrinkle <krinkle@users.mediawiki.org>
Sun, 5 Feb 2012 12:27:20 +0000 (12:27 +0000)
commitd572221034debcd36ff9b039138d5c96a7e3e348
treebd00b5dc76a6870c23ae149f5c0444d0abc27039
parent87ed9b37f24fea6ebc85b6da9083b3420cc796eb
[tests] use core qunit-fixture properly
QUnit provides a <div id="qunit-fixture"> by default that is cleared out after each test.

* Switch tests to append to the provided #qunit-fixture instead of appending to the body.
* Remove redundant .remove() calls, which now happens automatically
* Fix jquery.textSelection.test to not cause dozens of elements to be appended to the body with duplicate IDs, which was causing WebFonts test suite to fail (since the DOM can't select multiple elements with the same DOM). (Fixes r92923, r100391)
tests/qunit/suites/resources/jquery/jquery.autoEllipsis.test.js
tests/qunit/suites/resources/jquery/jquery.byteLimit.test.js
tests/qunit/suites/resources/jquery/jquery.delayedBind.test.js
tests/qunit/suites/resources/jquery/jquery.tabIndex.test.js
tests/qunit/suites/resources/jquery/jquery.tablesorter.test.js
tests/qunit/suites/resources/jquery/jquery.textSelection.test.js
tests/qunit/suites/resources/mediawiki/mediawiki.util.test.js