r80780 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r80779‎ | r80780 | r80781 >
Date:23:24, 22 January 2011
Author:krinkle
Status:ok
Tags:
Comment:
Renaming "mediaWiki.util Test Suite" to "mediaWiki JavaScript library test suite"
The tests cover pretty much the entire library, not just mw.util.*
Keeping the script under mediawiki.util since the test itself is a utility.

Object was already moved to mediaWiki.test from mediaWiki.util.test in a previous revision.
Modified paths:
  • /trunk/phase3/resources/mediawiki.util/mediawiki.util.test.js (modified) (history)

Diff [purge]

Index: trunk/phase3/resources/mediawiki.util/mediawiki.util.test.js
@@ -1,5 +1,5 @@
22 /**
3 - * mediaWiki.util Test Suite
 3+ * mediaWiki JavaScript library test suite
44 *
55 * Available on "/Special:BlankPage?action=mwutiltest&debug=true")
66 *
@@ -45,10 +45,10 @@
4646 && mw.util.getParamValue( 'action' ) === 'mwutiltest' ) {
4747
4848 // Build page
49 - document.title = 'mediaWiki.util JavaScript Test - ' + mw.config.get( 'wgSiteName' );
50 - $( '#firstHeading' ).text( 'mediaWiki.util JavaScript Test' );
 49+ document.title = 'mediaWiki JavaScript library test suite - ' + mw.config.get( 'wgSiteName' );
 50+ $( '#firstHeading' ).text( 'mediaWiki JavaScript library test suite' );
5151 mw.util.$content.html(
52 - '<p>Below is a list of tests to confirm proper functionality of the mediaWiki.util functions</p>'
 52+ '<p>Below is a list of tests to confirm proper functionality of the mediaWiki JavaScript library</p>'
5353 + '<hr />'
5454 + '<table id="mw-mwutiltest-table" class="wikitable sortable" style="white-space:break; font-family:monospace,\'Courier New\'">'
5555 + '<tr><th>Exec</th><th>Should return</th><th>Does return</th><th>Equal ?</th></tr>'

Status & tagging log