15 'logo' =>
'/logo.png',
17 'all' => [
'.mw-wiki-logo { background-image: url(/logo.png); }' ],
22 'screen' =>
'.example {}',
24 'logo' =>
'/logo.png',
26 'screen' => [
'.example {}' ],
27 'all' => [
'.mw-wiki-logo { background-image: url(/logo.png); }' ],
34 '1.5x' =>
'/logo@1.5x.png',
35 '2x' =>
'/logo@2x.png',
39.mw-wiki-logo { background-image: url(/logo.png); }
42 '(-webkit-min-device-pixel-ratio: 1.5), (min--moz-device-pixel-ratio: 1.5), (min-resolution: 1.5dppx), (min-resolution: 144dpi)' => [ <<<CSS
43.mw-wiki-logo { background-image: url(/logo@1.5x.png);background-size: 135px
auto; }
46 '(-webkit-min-device-pixel-ratio: 2), (min--moz-device-pixel-ratio: 2), (min-resolution: 2dppx), (min-resolution: 192dpi)' => [ <<<CSS
47.mw-wiki-logo { background-image: url(/logo@2x.png);background-size: 135px
auto; }
60.mw-wiki-logo { background-image: url(/logo.png); }
63.mw-wiki-logo { background-image: -webkit-linear-gradient(transparent, transparent), url(/logo.svg); background-image: linear-gradient(transparent, transparent), url(/logo.svg);background-size: 135px
auto; }
78 $module = $this->getMockBuilder( ResourceLoaderSkinModule::class )
79 ->disableOriginalConstructor()
80 ->setMethods( [
'readStyleFiles',
'getConfig',
'getLogoData' ] )
82 $module->expects( $this->once() )->method(
'readStyleFiles' )
83 ->willReturn( $parent );
84 $module->expects( $this->once() )->method(
'getConfig' )
86 $module->expects( $this->once() )->method(
'getLogoData' )
87 ->willReturn( $logo );
89 $ctx = $this->getMockBuilder( ResourceLoaderContext::class )
90 ->disableOriginalConstructor()->getMock();
94 $module->getStyles( $ctx )
102 $module = $this->getMockBuilder( ResourceLoaderSkinModule::class )
103 ->disableOriginalConstructor()->setMethods(
null )->getMock();
104 $ctx = $this->getMockBuilder( ResourceLoaderContext::class )
105 ->disableOriginalConstructor()->getMock();
107 $this->assertFalse( $module->isKnownEmpty( $ctx ) );