Skip to content

Commit 5040acf

Browse files
committed
Sync spec test files from ampproject/amp-toolbox#1248
1 parent e82a819 commit 5040acf

File tree

17 files changed

+29
-24
lines changed

17 files changed

+29
-24
lines changed

tests/Optimizer/Transformer/RewriteAmpUrlsTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function testThrowsOnMutuallyExclusiveFlags()
4040
public function testOrderingOfScripts()
4141
{
4242
$document = Document::fromHtml(
43-
TestMarkup::DOCTYPE . '<html amp><head>' . TestMarkup::META_CHARSET . TestMarkup::META_VIEWPORT
43+
TestMarkup::DOCTYPE . '<html amp i-amphtml-no-boilerplate><head>' . TestMarkup::META_CHARSET . TestMarkup::META_VIEWPORT
4444
. TestMarkup::LINK_CANONICAL . TestMarkup::LINK_GOOGLE_FONT_PRECONNECT
4545
. TestMarkup::SCRIPT_AMPRUNTIME
4646
. '</head><body></body></html>'
@@ -53,7 +53,7 @@ public function testOrderingOfScripts()
5353

5454
$this->assertCount(0, $errors);
5555
$this->assertSimilarMarkup(
56-
TestMarkup::DOCTYPE . '<html amp><head>' . TestMarkup::META_CHARSET . TestMarkup::META_VIEWPORT
56+
TestMarkup::DOCTYPE . '<html amp i-amphtml-no-boilerplate><head>' . TestMarkup::META_CHARSET . TestMarkup::META_VIEWPORT
5757
. TestMarkup::LINK_CANONICAL . TestMarkup::LINK_GOOGLE_FONT_PRECONNECT
5858
. '<script async crossorigin="anonymous" nomodule src="https://cdn.ampproject.org/v0.js"></script>'
5959
. '<script async crossorigin="anonymous" src="https://cdn.ampproject.org/v0.mjs" type="module"></script>'

tests/spec/end-to-end/hello-world/expected_output.fast.html

+1-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/spec/end-to-end/hello-world/expected_output.full.html

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/spec/end-to-end/hello-world/expected_output.lts.html

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/spec/end-to-end/story/expected_output.full.html

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/spec/end-to-end/story/expected_output.lts.html

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/spec/end-to-end/story/expected_output.paired.html

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/spec/end-to-end/trailing-template/expected_output.fast.html

+1-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/spec/transformers/experimental/RewriteAmpUrls/adds_geoapi/expected_output.html

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)