Merge pull request #10011 from creative-commoners/pulls/4/htmleditor-readonly-lazy-load

MNT Update unit test to expect loading attribute
This commit is contained in:
Andre Kiste 2021-07-09 11:00:26 +12:00 committed by GitHub
commit ae61be3a49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -180,7 +180,7 @@ class HTMLEditorFieldTest extends FunctionalTest
$this->assertEquals( $this->assertEquals(
<<<EOS <<<EOS
<span class="readonly typography" id="Content"> <span class="readonly typography" id="Content">
<img src="/assets/HTMLEditorFieldTest/f5c7c2f814/example__ResizedImageWzEwLDIwXQ.jpg" alt="" width="10" height="20"> <img src="/assets/HTMLEditorFieldTest/f5c7c2f814/example__ResizedImageWzEwLDIwXQ.jpg" alt="" width="10" height="20" loading="lazy">
</span> </span>
@ -197,7 +197,7 @@ EOS
$this->assertEquals( $this->assertEquals(
<<<EOS <<<EOS
<span class="readonly typography" id="Content"> <span class="readonly typography" id="Content">
<img src="/assets/HTMLEditorFieldTest/f5c7c2f814/example__ResizedImageWzEwLDIwXQ.jpg" alt="" width="10" height="20"> <img src="/assets/HTMLEditorFieldTest/f5c7c2f814/example__ResizedImageWzEwLDIwXQ.jpg" alt="" width="10" height="20" loading="lazy">
</span> </span>
<input type="hidden" name="Content" value="[image src=&quot;/assets/HTMLEditorFieldTest/f5c7c2f814/example.jpg&quot; width=&quot;10&quot; height=&quot;20&quot; id=&quot;{$fileID}&quot;]" /> <input type="hidden" name="Content" value="[image src=&quot;/assets/HTMLEditorFieldTest/f5c7c2f814/example.jpg&quot; width=&quot;10&quot; height=&quot;20&quot; id=&quot;{$fileID}&quot;]" />