r70581 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r70580‎ | r70581 | r70582 >
Date:18:51, 6 August 2010
Author:tparscal
Status:ok
Tags:
Comment:
Fixed test to work with changes made while integrating into OutputPage and Skin
Modified paths:
  • /branches/resourceloader/phase3/resources/test/index.html (modified) (history)

Diff [purge]

Index: branches/resourceloader/phase3/resources/test/index.html
@@ -11,6 +11,14 @@
1212 }
1313 </style>
1414 <script type="text/javascript" src="../../load.php?modules=jquery|mediawiki&amp;debug=true&amp;skin=vector&amp;lang=ja"></script>
 15+ <script>
 16+ // Mimic what Skin::makeGlobalVariablesScript would have done
 17+ mediaWiki.config.set( {
 18+ 'skin': 'vector',
 19+ 'wgUserLanguage': 'en',
 20+ 'wgUserName': null
 21+ } );
 22+ </script>
1523 </head>
1624 <body>
1725 <h1>Resource Loader Tests</h1>
@@ -22,15 +30,15 @@
2331 <input type="text" id="datepicker" />
2432 </p>
2533 <script type="text/javascript" >
26 - mw.loader.load( ['test', 'jquery.ui.core', 'jquery.ui.datepicker'] );
 34+ mediaWiki.loader.load( ['test', 'jquery.ui.core', 'jquery.ui.datepicker'] );
2735 </script>
2836 <script type="text/javascript">
29 - mw.loader.using( 'test', function() {
30 - mw.log( 'test (static with dynamic needs)' );
 37+ mediaWiki.loader.using( 'test', function() {
 38+ mediaWiki.log( 'test (static with dynamic needs)' );
3139 } );
32 - mw.loader.using( 'jquery.ui.datepicker', function() {
 40+ mediaWiki.loader.using( 'jquery.ui.datepicker', function() {
3341 $( '#datepicker' ).datepicker();
34 - mw.log( 'datepicker (dynamic)' );
 42+ mediaWiki.log( 'datepicker (dynamic)' );
3543 } );
3644 </script>
3745 </body>

Status & tagging log