Renaming qunit test files to end in ".test.js" (finally!)
authorKrinkle <krinkle@users.mediawiki.org>
Fri, 12 Aug 2011 16:02:03 +0000 (16:02 +0000)
committerKrinkle <krinkle@users.mediawiki.org>
Fri, 12 Aug 2011 16:02:03 +0000 (16:02 +0000)
commitefa078493fe24550c924391d65d28c369f0c6074
tree256c98816df7bcee3c03efd124d1c590d0218b63
parentee2b4ad57b5c4ffa1bec07f8b3a4a13ace3f2803
Renaming qunit test files to end in ".test.js" (finally!)

* There shouldn't be two files with the same name in core, especially not the module and the test suite. Previously postponed due to compatibility with our TestSwarm script, that has been fixed now.

* Had to modify the files in the same commit since the module name is referenced inside the test suite in the module() call, which is the hint for QUnit when filtering is done through the ?filter= parameter.

* As has been added to the conventions, there must be only one module() call per test suite file and it MUST match "filename without .test.js". Otherwise the module will not be submitted to TestSwarm (which glob()'s at the /suites/ directory and extracts test-suite-module-names from the filenames).
32 files changed:
tests/qunit/index.html
tests/qunit/suites/resources/jquery/jquery.autoEllipsis.js [deleted file]
tests/qunit/suites/resources/jquery/jquery.autoEllipsis.test.js [new file with mode: 0644]
tests/qunit/suites/resources/jquery/jquery.byteLength.js [deleted file]
tests/qunit/suites/resources/jquery/jquery.byteLength.test.js [new file with mode: 0644]
tests/qunit/suites/resources/jquery/jquery.byteLimit.js [deleted file]
tests/qunit/suites/resources/jquery/jquery.byteLimit.test.js [new file with mode: 0644]
tests/qunit/suites/resources/jquery/jquery.client.js [deleted file]
tests/qunit/suites/resources/jquery/jquery.client.test.js [new file with mode: 0644]
tests/qunit/suites/resources/jquery/jquery.colorUtil.js [deleted file]
tests/qunit/suites/resources/jquery/jquery.colorUtil.test.js [new file with mode: 0644]
tests/qunit/suites/resources/jquery/jquery.getAttrs.js [deleted file]
tests/qunit/suites/resources/jquery/jquery.getAttrs.test.js [new file with mode: 0644]
tests/qunit/suites/resources/jquery/jquery.localize.js [deleted file]
tests/qunit/suites/resources/jquery/jquery.localize.test.js [new file with mode: 0644]
tests/qunit/suites/resources/jquery/jquery.mwExtension.js [deleted file]
tests/qunit/suites/resources/jquery/jquery.mwExtension.test.js [new file with mode: 0644]
tests/qunit/suites/resources/jquery/jquery.tabIndex.js [deleted file]
tests/qunit/suites/resources/jquery/jquery.tabIndex.test.js [new file with mode: 0644]
tests/qunit/suites/resources/jquery/jquery.tablesorter.test.js
tests/qunit/suites/resources/jquery/jquery.textSelection.js [deleted file]
tests/qunit/suites/resources/jquery/jquery.textSelection.test.js [new file with mode: 0644]
tests/qunit/suites/resources/mediawiki.special/mediawiki.special.recentchanges.js [deleted file]
tests/qunit/suites/resources/mediawiki.special/mediawiki.special.recentchanges.test.js [new file with mode: 0644]
tests/qunit/suites/resources/mediawiki/mediawiki.js [deleted file]
tests/qunit/suites/resources/mediawiki/mediawiki.test.js [new file with mode: 0644]
tests/qunit/suites/resources/mediawiki/mediawiki.title.js [deleted file]
tests/qunit/suites/resources/mediawiki/mediawiki.title.test.js [new file with mode: 0644]
tests/qunit/suites/resources/mediawiki/mediawiki.user.js [deleted file]
tests/qunit/suites/resources/mediawiki/mediawiki.user.test.js [new file with mode: 0644]
tests/qunit/suites/resources/mediawiki/mediawiki.util.js [deleted file]
tests/qunit/suites/resources/mediawiki/mediawiki.util.test.js [new file with mode: 0644]