Changeset 51079 for trunk/tests/phpunit/tests/theme/wpThemeJson.php
- Timestamp:
- 06/07/2021 11:16:29 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/theme/wpThemeJson.php
r51054 r51079 157 157 ); 158 158 159 $this->assert Equals(159 $this->assertSame( 160 160 'body{--wp--preset--color--grey: grey;}.wp-block-group{--wp--custom--base-font: 16;--wp--custom--line-height--small: 1.2;--wp--custom--line-height--medium: 1.4;--wp--custom--line-height--large: 1.8;}body{color: var(--wp--preset--color--grey);}a{background-color: #333;color: #111;}.wp-block-group{padding-top: 12px;padding-bottom: 24px;}.wp-block-group a{color: #111;}h1,h2,h3,h4,h5,h6{color: #123456;}h1 a,h2 a,h3 a,h4 a,h5 a,h6 a{background-color: #333;color: #111;font-size: 60px;}.wp-block-post-date{color: #123456;}.wp-block-post-date a{background-color: #777;color: #555;}.has-grey-color{color: grey !important;}.has-grey-background-color{background-color: grey !important;}', 161 161 $theme_json->get_stylesheet() 162 162 ); 163 $this->assert Equals(163 $this->assertSame( 164 164 'body{color: var(--wp--preset--color--grey);}a{background-color: #333;color: #111;}.wp-block-group{padding-top: 12px;padding-bottom: 24px;}.wp-block-group a{color: #111;}h1,h2,h3,h4,h5,h6{color: #123456;}h1 a,h2 a,h3 a,h4 a,h5 a,h6 a{background-color: #333;color: #111;font-size: 60px;}.wp-block-post-date{color: #123456;}.wp-block-post-date a{background-color: #777;color: #555;}.has-grey-color{color: grey !important;}.has-grey-background-color{background-color: grey !important;}', 165 165 $theme_json->get_stylesheet( 'block_styles' ) 166 166 ); 167 $this->assert Equals(167 $this->assertSame( 168 168 'body{--wp--preset--color--grey: grey;}.wp-block-group{--wp--custom--base-font: 16;--wp--custom--line-height--small: 1.2;--wp--custom--line-height--medium: 1.4;--wp--custom--line-height--large: 1.8;}', 169 169 $theme_json->get_stylesheet( 'css_variables' ) … … 192 192 ); 193 193 194 $this->assert Equals(194 $this->assertSame( 195 195 'h1.has-white-color,h2.has-white-color,h3.has-white-color,h4.has-white-color,h5.has-white-color,h6.has-white-color{color: #fff !important;}h1.has-white-background-color,h2.has-white-background-color,h3.has-white-background-color,h4.has-white-background-color,h5.has-white-background-color,h6.has-white-background-color{background-color: #fff !important;}', 196 196 $theme_json->get_stylesheet( 'block_styles' ) … … 228 228 ); 229 229 230 $this->assert Equals(230 $this->assertSame( 231 231 '.wp-block-group{--wp--preset--color--grey: grey;}.wp-block-group{color: red;}.wp-block-group.has-grey-color{color: grey !important;}.wp-block-group.has-grey-background-color{background-color: grey !important;}', 232 232 $theme_json->get_stylesheet() 233 233 ); 234 $this->assert Equals(234 $this->assertSame( 235 235 '.wp-block-group{color: red;}.wp-block-group.has-grey-color{color: grey !important;}.wp-block-group.has-grey-background-color{background-color: grey !important;}', 236 236 $theme_json->get_stylesheet( 'block_styles' ) … … 269 269 ); 270 270 271 $this->assert Equals(271 $this->assertSame( 272 272 'body{--wp--preset--color--grey: grey;}p{background-color: blue;color: red;font-size: 12px;line-height: 1.3;}.has-grey-color{color: grey !important;}.has-grey-background-color{background-color: grey !important;}', 273 273 $theme_json->get_stylesheet()
Note: See TracChangeset
for help on using the changeset viewer.