Index: trunk/phase3/resources/mediawiki.util/mediawiki.util.test.js |
— | — | @@ -61,8 +61,18 @@ |
62 | 62 | // Build page |
63 | 63 | document.title = 'mediaWiki JavaScript library test suite - ' + mw.config.get( 'wgSiteName' ); |
64 | 64 | $( '#firstHeading' ).text( 'mediaWiki JavaScript library test suite' ); |
| 65 | + var skinLinksText = 'Test in: '; |
| 66 | + skinLinks = [], |
| 67 | + availableSkins = mw.config.get( 'wgAvailableSkins' ); |
| 68 | + for ( skin in availableSkins ) { |
| 69 | + skinLinks.push( mw.html.element( 'a', { |
| 70 | + 'href': mw.util.wikiGetlink( wgPageName ) + '?action=mwutiltest&debug=true&useskin=' + encodeURIComponent( skin ) |
| 71 | + }, availableSkins[skin] ) ); |
| 72 | + } |
| 73 | + skinLinksText += skinLinks.join( ' | ' ) + '.'; |
65 | 74 | mw.util.$content.html( |
66 | 75 | '<p>Below is a list of tests to confirm proper functionality of the mediaWiki JavaScript library</p>' |
| 76 | + + '<p>' + skinLinksText + '</p>' |
67 | 77 | + '<hr />' |
68 | 78 | + '<table id="mw-mwutiltest-table" class="wikitable sortable" style="white-space:break; font-family:monospace,\'Courier New\'">' |
69 | 79 | + '<tr><th>Exec</th><th>Should return</th><th>Does return</th><th>Equal ?</th></tr>' |