Skip to content

Commit 9f1fc02

Browse files
committed
Update image-prioritizer test case
1 parent 395cbb4 commit 9f1fc02

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

plugins/image-prioritizer/tests/test-cases/common-lcp-image-with-old-xpath-format/expected.html

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugins/image-prioritizer/tests/test-cases/common-lcp-image-with-old-xpath-format/set-up.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
$test_case->populate_url_metrics(
44
array(
55
array(
6-
// Note: This is intentionally using old XPath scheme. This is to make sure that the old format still results in the expected optimization during a transitional period.
6+
// Note: This is intentionally using old XPath scheme to test the behavior in case an old URL Metric ends up getting used.
7+
// In practice, this should behave identically to the common-lcp-image-with-stale-sample-data test.
78
'xpath' => '/*[1][self::HTML]/*[2][self::BODY]/*[1][self::DIV]/*[1][self::IMG]',
89
'isLCP' => true,
910
),

0 commit comments

Comments
 (0)