Index: trunk/extensions/JS2Support/tests/testLang.html |
— | — | @@ -13,6 +13,14 @@ |
14 | 14 | //var langTestSet = [ 'tk', 'tt', 'sr-el', 'sr-ec', 'sr', 'shi', 'se', 'shi']; |
15 | 15 | //doLangTable ( langTestSet ); |
16 | 16 | |
| 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 | + |
17 | 25 | // Setup bindings: |
18 | 26 | $j('#runLang').click(function(){ |
19 | 27 | $j('#table_out,#score_card').empty(); |
— | — | @@ -182,7 +190,7 @@ |
183 | 191 | </head> |
184 | 192 | <body> |
185 | 193 | <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> |
187 | 195 | <a id="runLang" href="#">Run Language Key</a>:<input size="5" id="testLangKey" name = "testLangKey" value="en"/> |
188 | 196 | |
189 | 197 | <div id="score_card" style="font-size:large"></div> |