Index: branches/resourceloader/phase3/resources/test/index.html |
— | — | @@ -11,6 +11,14 @@ |
12 | 12 | } |
13 | 13 | </style> |
14 | 14 | <script type="text/javascript" src="../../load.php?modules=jquery|mediawiki&debug=true&skin=vector&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> |
15 | 23 | </head> |
16 | 24 | <body> |
17 | 25 | <h1>Resource Loader Tests</h1> |
— | — | @@ -22,15 +30,15 @@ |
23 | 31 | <input type="text" id="datepicker" /> |
24 | 32 | </p> |
25 | 33 | <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'] ); |
27 | 35 | </script> |
28 | 36 | <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)' ); |
31 | 39 | } ); |
32 | | - mw.loader.using( 'jquery.ui.datepicker', function() { |
| 40 | + mediaWiki.loader.using( 'jquery.ui.datepicker', function() { |
33 | 41 | $( '#datepicker' ).datepicker(); |
34 | | - mw.log( 'datepicker (dynamic)' ); |
| 42 | + mediaWiki.log( 'datepicker (dynamic)' ); |
35 | 43 | } ); |
36 | 44 | </script> |
37 | 45 | </body> |