fix: complete CHRNX responsive edge states
This commit is contained in:
15 files changed
+384
-35
No files matched your search
@@ -460,7 +460,8 @@ class BlockRenderingTest extends WP_UnitTestCase {
|
||||
$this->assertStringContainsString( 'alt=""', $output );
|
||||
$this->assertStringContainsString( 'width="1122"', $output );
|
||||
$this->assertStringContainsString( 'height="1402"', $output );
|
||||
$this->assertStringContainsString( 'loading="lazy"', $output );
|
||||
$this->assertStringContainsString( 'loading="eager"', $output );
|
||||
$this->assertStringContainsString( 'fetchpriority="high"', $output );
|
||||
$this->assertStringContainsString( 'decoding="async"', $output );
|
||||
|
||||
$unsafe = render_block(
|
||||
@@ -635,6 +636,18 @@ class BlockRenderingTest extends WP_UnitTestCase {
|
||||
$this->assertStringNotContainsString( '<img', $output );
|
||||
}
|
||||
|
||||
/** Topic heroes are the section surface and prioritize their approved portrait. */
|
||||
public function test_topic_hero_portrait_is_eager_and_high_priority() {
|
||||
$output = render_block(
|
||||
array(
|
||||
'blockName' => 'chrnx/topic-hero',
|
||||
'attrs' => array( 'topic' => 'code' ),
|
||||
)
|
||||
);
|
||||
$this->assertStringContainsString( 'loading="eager"', $output );
|
||||
$this->assertStringContainsString( 'fetchpriority="high"', $output );
|
||||
}
|
||||
|
||||
/** Journal pagination preserves only validated filters in actual rendered links. */
|
||||
public function test_journal_pagination_links_preserve_only_valid_bounded_filters() {
|
||||
$raw_search = 'needle' . str_repeat( 'x', 150 ) . '<b>unsafe</b>';
|
||||
|
||||
Reference in new issue
Block a user