[
[ 'test.quux', ResourceLoaderModule::TYPE_SCRIPTS ],
"<script>(window.RLQ=window.RLQ||[]).push(function(){"
- . "mw.test.baz({token:123});mw.loader.state({\"test.quux\":\"ready\"});"
+ . "mw.test.baz({token:123});\nmw.loader.state({\"test.quux\":\"ready\"});"
. "});</script>"
],
];
$this->assertTrue( $outputPage->haveCacheVaryCookies() );
}
- /*
+ /**
* @covers OutputPage::addCategoryLinks
* @covers OutputPage::getCategories
*/
public function testGetCategories() {
$fakeResultWrapper = new FakeResultWrapper( [
- (object) [
+ (object)[
'pp_value' => 1,
'page_title' => 'Test'
],
- (object) [
+ (object)[
'page_title' => 'Test2'
]
] );
'not all and (min-resolution: 2dppx),' .
'</img/two-x.png>;rel=preload;as=image;media=(min-resolution: 2dppx)'
],
+ [
+ [
+ 'ResourceBasePath' => '/w',
+ 'Logo' => '/img/default.png',
+ 'LogoHD' => [
+ 'svg' => '/img/vector.svg',
+ ],
+ ],
+ 'Link: </img/vector.svg>;rel=preload;as=image'
+
+ ],
[
[
'ResourceBasePath' => '/w',
return [];
}
- public function insertMessageBlob( $name, ResourceLoaderModule $module, $lang ) {
- return false;
- }
-
public function updateModule( $name, ResourceLoaderModule $module, $lang ) {
}