-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement SSR for amp-audio extension (#1324)
* Implement SSR for amp-audio extension * Make test input valid AMP * Update expected_output.html Co-authored-by: Sebastian Benz <sebastian.benz@gmail.com>
- Loading branch information
1 parent
4afdd75
commit 678c0e2
Showing
5 changed files
with
41 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
.../transformers/valid/ServerSideRendering/does_not_transform_amp_audio/expected_output.html
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
...mizer/spec/transformers/valid/ServerSideRendering/does_not_transform_amp_audio/input.html
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
...zer/spec/transformers/valid/ServerSideRendering/transforms_amp_audio/expected_output.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<html ⚡ i-amphtml-layout i-amphtml-no-boilerplate> | ||
<head><style amp-runtime></style> | ||
</head> | ||
<body> | ||
<amp-audio><audio controls></audio></amp-audio> | ||
<amp-audio src="https://example.com/audio.mp3" width="300"><audio controls></audio></amp-audio> | ||
<amp-audio src="https://example.com/audio.mp3" width="300"> | ||
<div fallback>Your browser doesn’t support HTML5 audio</div> | ||
<audio controls></audio> | ||
</amp-audio> | ||
</body> | ||
</html> |
11 changes: 11 additions & 0 deletions
11
...ges/optimizer/spec/transformers/valid/ServerSideRendering/transforms_amp_audio/input.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<html ⚡> | ||
<head></head> | ||
<body> | ||
<amp-audio></amp-audio> | ||
<amp-audio src="https://example.com/audio.mp3" width="300"></amp-audio> | ||
<amp-audio src="https://example.com/audio.mp3" width="300"> | ||
<div fallback>Your browser doesn’t support HTML5 audio</div> | ||
<audio controls></audio> | ||
</amp-audio> | ||
</body> | ||
</html> |