http://www.mediawiki.org/wiki/Special:Code/MediaWiki/70581
Revision: 70581
Author: tparscal
Date: 2010-08-06 18:51:23 +0000 (Fri, 06 Aug 2010)
Log Message:
-----------
Fixed test to work with changes made while integrating into OutputPage and Skin
Modified Paths:
--------------
branches/resourceloader/phase3/resources/test/index.html
Modified: branches/resourceloader/phase3/resources/test/index.html
===================================================================
--- branches/resourceloader/phase3/resources/test/index.html 2010-08-06
18:49:21 UTC (rev 70580)
+++ branches/resourceloader/phase3/resources/test/index.html 2010-08-06
18:51:23 UTC (rev 70581)
@@ -11,6 +11,14 @@
}
</style>
<script type="text/javascript"
src="../../load.php?modules=jquery|mediawiki&debug=true&skin=vector&lang=ja"></script>
+ <script>
+ // Mimic what Skin::makeGlobalVariablesScript would
have done
+ mediaWiki.config.set( {
+ 'skin': 'vector',
+ 'wgUserLanguage': 'en',
+ 'wgUserName': null
+ } );
+ </script>
</head>
<body>
<h1>Resource Loader Tests</h1>
@@ -22,15 +30,15 @@
<input type="text" id="datepicker" />
</p>
<script type="text/javascript" >
- mw.loader.load( ['test', 'jquery.ui.core',
'jquery.ui.datepicker'] );
+ mediaWiki.loader.load( ['test', 'jquery.ui.core',
'jquery.ui.datepicker'] );
</script>
<script type="text/javascript">
- mw.loader.using( 'test', function() {
- mw.log( 'test (static with dynamic needs)' );
+ mediaWiki.loader.using( 'test', function() {
+ mediaWiki.log( 'test (static with dynamic
needs)' );
} );
- mw.loader.using( 'jquery.ui.datepicker', function() {
+ mediaWiki.loader.using( 'jquery.ui.datepicker',
function() {
$( '#datepicker' ).datepicker();
- mw.log( 'datepicker (dynamic)' );
+ mediaWiki.log( 'datepicker (dynamic)' );
} );
</script>
</body>
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs