Skip to content

Commit 8457c61

Browse files
committed
Adjust tests
1 parent 642f59e commit 8457c61

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

apps/theming/tests/lib/controller/ThemingControllerTest.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -383,10 +383,11 @@ public function testGetStylesheetWithOnlyHeaderLogo() {
383383

384384
$expected = new Http\DataDownloadResponse('#header .logo {
385385
background-image: url(\'./logo?v=0\');
386+
background-size: contain;
386387
}
387388
#header .logo-icon {
388389
background-image: url(\'./logo?v=0\');
389-
background-size: 62px 34px;
390+
background-size: contain;
390391
}', 'style', 'text/css');
391392
$expected->cacheFor(3600);
392393
@$this->assertEquals($expected, $this->themingController->getStylesheet());
@@ -445,10 +446,11 @@ public function testGetStylesheetWithAllCombined() {
445446

446447
$expected = new Http\DataDownloadResponse('#body-user #header,#body-settings #header,#body-public #header {background-color: #000}#header .logo {
447448
background-image: url(\'./logo?v=0\');
449+
background-size: contain;
448450
}
449451
#header .logo-icon {
450452
background-image: url(\'./logo?v=0\');
451-
background-size: 62px 34px;
453+
background-size: contain;
452454
}#body-login {
453455
background-image: url(\'./loginbackground?v=0\');
454456
}', 'style', 'text/css');
@@ -479,10 +481,11 @@ public function testGetStylesheetWithAllCombinedInverted() {
479481

480482
$expected = new Http\DataDownloadResponse('#body-user #header,#body-settings #header,#body-public #header {background-color: #fff}#header .logo {
481483
background-image: url(\'./logo?v=0\');
484+
background-size: contain;
482485
}
483486
#header .logo-icon {
484487
background-image: url(\'./logo?v=0\');
485-
background-size: 62px 34px;
488+
background-size: contain;
486489
}#body-login {
487490
background-image: url(\'./loginbackground?v=0\');
488491
}#header .header-appname, #expandDisplayName { color: #000000; } #header .icon-caret { background-image: url(\'' . \OC::$WEBROOT . '/core/img/actions/caret-dark.svg\'); } .searchbox input[type="search"] { background: transparent url(\'' . \OC::$WEBROOT . '/core/img/actions/search.svg\') no-repeat 6px center; color: #000; }.searchbox input[type="search"]:focus,.searchbox input[type="search"]:active,.searchbox input[type="search"]:valid { color: #000; border: 1px solid rgba(0, 0, 0, .5); }', 'style', 'text/css');

0 commit comments

Comments
 (0)