Skip to content

Commit

Permalink
Update gallery handler test cases to remove lazy loading attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
thelovekesh committed May 24, 2023
1 parent e565be2 commit eeebbd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/php/test-amp-gallery-embed-handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ public function test__conversion( $source, $expected, $use_legacy_mode = false )
$content = str_replace( 'jpg.webp', '.jpg', $content );

// Remove lazy loading attribute.
$content = str_replace( 'loading="lazy" ', '', $content );
$content = preg_replace( '/\s+loading="lazy"/', '', $content );

$this->assertEquals(
$this->normalize( $expected ),
Expand Down

0 comments on commit eeebbd9

Please sign in to comment.