Index: branches/resourceloader/phase3/maintenance/tests/ResourceLoaderTest.php |
— | — | @@ -0,0 +1,16 @@ |
| 2 | +<?php |
| 3 | + |
| 4 | +class ResourceLoaderTest extends PHPUnit_Framework_TestCase { |
| 5 | + |
| 6 | + /* Provider Methods */ |
| 7 | + |
| 8 | + public function provide() { |
| 9 | + |
| 10 | + } |
| 11 | + |
| 12 | + /* Test Methods */ |
| 13 | + |
| 14 | + public function test() { |
| 15 | + |
| 16 | + } |
| 17 | +} |
\ No newline at end of file |
Property changes on: branches/resourceloader/phase3/maintenance/tests/ResourceLoaderTest.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 18 | + native |
Index: branches/resourceloader/phase3/maintenance/tests/ResourceLoaderFileModuleTest.php |
— | — | @@ -0,0 +1,16 @@ |
| 2 | +<?php |
| 3 | + |
| 4 | +class ResourceLoaderFileModuleTest extends PHPUnit_Framework_TestCase { |
| 5 | + |
| 6 | + /* Provider Methods */ |
| 7 | + |
| 8 | + public function provide() { |
| 9 | + |
| 10 | + } |
| 11 | + |
| 12 | + /* Test Methods */ |
| 13 | + |
| 14 | + public function test() { |
| 15 | + |
| 16 | + } |
| 17 | +} |
\ No newline at end of file |
Property changes on: branches/resourceloader/phase3/maintenance/tests/ResourceLoaderFileModuleTest.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 18 | + native |
Index: branches/resourceloader/phase3/includes/AutoLoader.php |
— | — | @@ -200,7 +200,8 @@ |
201 | 201 | 'ResourceLoader' => 'includes/ResourceLoader.php', |
202 | 202 | 'ResourceLoaderFileModule' => 'includes/ResourceLoaderModule.php', |
203 | 203 | 'ResourceLoaderModule' => 'includes/ResourceLoaderModule.php', |
204 | | - 'ResourceLoaderSiteJSModule' => 'includes/ResourceLoaderModule.php', |
| 204 | + 'ResourceLoaderSiteModule' => 'includes/ResourceLoaderModule.php', |
| 205 | + 'ResourceLoaderStartUpModule' => 'includes/ResourceLoaderModule.php', |
205 | 206 | 'ReverseChronologicalPager' => 'includes/Pager.php', |
206 | 207 | 'Revision' => 'includes/Revision.php', |
207 | 208 | 'RevisionDelete' => 'includes/RevisionDelete.php', |
Index: branches/resourceloader/phase3/includes/ResourceLoaderModule.php |
— | — | @@ -549,8 +549,9 @@ |
550 | 550 | |
551 | 551 | /** |
552 | 552 | * Custom module for MediaWiki:Common.js and MediaWiki:Skinname.js |
| 553 | + * TODO: Add Site CSS functionality too |
553 | 554 | */ |
554 | | -class ResourceLoaderSiteJSModule extends ResourceLoaderModule { |
| 555 | +class ResourceLoaderSiteModule extends ResourceLoaderModule { |
555 | 556 | // In-object cache for modified time |
556 | 557 | private $modifiedTime = null; |
557 | 558 | |
— | — | @@ -591,7 +592,7 @@ |
592 | 593 | } |
593 | 594 | |
594 | 595 | |
595 | | -class ResourceLoaderStartupModule extends ResourceLoaderModule { |
| 596 | +class ResourceLoaderStartUpModule extends ResourceLoaderModule { |
596 | 597 | private $modifiedTime = null; |
597 | 598 | |
598 | 599 | public function getScript( $lang, $skin, $debug ) { |
Index: branches/resourceloader/phase3/resources/Resources.php |
— | — | @@ -4,8 +4,8 @@ |
5 | 5 | |
6 | 6 | /* Special resources who have their own classes */ |
7 | 7 | |
8 | | - 'sitejs' => new ResourceLoaderSiteJSModule, |
9 | | - 'startup' => new ResourceLoaderStartupModule, |
| 8 | + 'site' => new ResourceLoaderSiteModule, |
| 9 | + 'startup' => new ResourceLoaderStartUpModule, |
10 | 10 | |
11 | 11 | /* Skins */ |
12 | 12 | |