Skip to content

Commit

Permalink
Adapt <audio> test as we strip IE conditional comments
Browse files Browse the repository at this point in the history
  • Loading branch information
schlessera committed Jan 15, 2020
1 parent 2e48e70 commit 51838be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/php/test-amp-audio-converter.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ public function get_data() {
],

'audio_block_and_shortcode_output' => [
// Note: the IE conditional comment is stripped, as AMP doesn't support those browsers anyway.
'
<figure class="wp-block-audio">
<audio controls src="https://wordpressdev.lndo.site/content/uploads/2019/02/do-you-know-I-am-batman.mp3"></audio>
Expand All @@ -168,7 +169,6 @@ public function get_data() {
<figcaption>Caption</figcaption>
</figure>
<!--[if lt IE 9]><script>document.createElement(\'audio\');</script><![endif]-->
<amp-audio class="wp-audio-shortcode amp-wp-199b6f0" id="audio-87-1" preload="none" controls="controls" width="auto">
<source type="audio/mpeg" src="https://wordpressdev.lndo.site/content/uploads/2019/02/do-you-know-I-am-batman.mp3?_=1">
<a href="https://wordpressdev.lndo.site/content/uploads/2019/02/do-you-know-I-am-batman.mp3" fallback="">https://wordpressdev.lndo.site/content/uploads/2019/02/do-you-know-I-am-batman.mp3</a>
Expand Down

0 comments on commit 51838be

Please sign in to comment.