r66363 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r66362‎ | r66363 | r66364 >
Date:17:30, 13 May 2010
Author:dale
Status:deferred
Tags:
Comment:
include number of tests in run-all
Modified paths:
  • /trunk/extensions/JS2Support/tests/testLang.html (modified) (history)

Diff [purge]

Index: trunk/extensions/JS2Support/tests/testLang.html
@@ -13,6 +13,14 @@
1414 //var langTestSet = [ 'tk', 'tt', 'sr-el', 'sr-ec', 'sr', 'shi', 'se', 'shi'];
1515 //doLangTable ( langTestSet );
1616
 17+ //Update the language count
 18+ var count=0;
 19+ for(var i in mw.Language.names){
 20+ count++;
 21+ }
 22+ $j('#languageCount').text( count );
 23+
 24+
1725 // Setup bindings:
1826 $j('#runLang').click(function(){
1927 $j('#table_out,#score_card').empty();
@@ -182,7 +190,7 @@
183191 </head>
184192 <body>
185193 <h3>Test Javascript plural msg transformations ( note this is a very resource intensive test )</h3>
186 -<a id="runAll" href="#">Run Test all<a> ( takes a while ) <br>
 194+<a id="runAll" href="#">Run all <span id="languageCount">...</span> tests<a> ( takes a while ) <br>
187195 <a id="runLang" href="#">Run Language Key</a>:<input size="5" id="testLangKey" name = "testLangKey" value="en"/>
188196
189197 <div id="score_card" style="font-size:large"></div>

Status & tagging log