r101345 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r101344‎ | r101345 | r101346 >
Date:10:06, 31 October 2011
Author:hashar
Status:ok
Tags:
Comment:
add a backlink on [[Special:JavaScriptTest/qunit]]
Modified paths:
  • /branches/JSTesting/includes/specials/SpecialJavaScriptTest.php (modified) (history)
  • /branches/JSTesting/languages/messages/MessagesEn.php (modified) (history)
  • /branches/JSTesting/languages/messages/MessagesQqq.php (modified) (history)

Diff [purge]

Index: branches/JSTesting/includes/specials/SpecialJavaScriptTest.php
@@ -47,6 +47,7 @@
4848 // Matched! Display proper title and initialize the framework
4949 } elseif ( isset( self::$frameworks[$framework] ) ) {
5050 $out->setPagetitle( wfMsg( 'javascripttest-title', wfMsg( "javascripttest-$framework-name" ) ) );
 51+ $out->setSubtitle( wfMsg( 'javascripttest-backlink', Linker::linkKnown( $this->getTitle() ) ) );
5152 $this->{self::$frameworks[$framework]}();
5253
5354 // Framework not found, display error
Index: branches/JSTesting/languages/messages/MessagesQqq.php
@@ -2972,6 +2972,7 @@
29732973
29742974 # JavaScriptTest
29752975 'javascripttest' => 'Title of the special page',
 2976+'javascripttest-backlink' => '{{optional}}',
29762977 'javascripttest-disabled' => '{{Identical|Function disabled}}.',
29772978 'javascripttest-title' => 'Title of the special page when running a test suite. $1 is the name of the framework.',
29782979 'javascripttest-pagetext-unknownframework' => 'Error message when given framework id is not found. $1 is the if of the framework.',
Index: branches/JSTesting/languages/messages/MessagesEn.php
@@ -3372,6 +3372,7 @@
33733373
33743374 # JavaScriptTest
33753375 'javascripttest' => 'JavaScript Test',
 3376+'javascripttest-backlink' => '← $1',
33763377 'javascripttest-disabled' => 'This function is disabled.',
33773378 'javascripttest-title' => 'Running $1 tests',
33783379 'javascripttest-pagetext-noframework' => 'This page is reserved for running javascript tests.',

Follow-up revisions

RevisionCommit summaryAuthorDate
r101395[JSTesting] javascripttest-backlink:...krinkle19:59, 31 October 2011

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r100392[JSTesting] Initial stab at implementing on-wiki running of unit tests with Q...krinkle23:11, 20 October 2011

Status & tagging log