Bug 1408636 - Ensure accessibility tests pass regardless of image caching affecting whitespace. r=yzen

This commit is contained in:
Andrew Osmond 2018-02-07 07:27:28 -05:00
Родитель e68d0fd3d2
Коммит 3b58cdf796
4 изменённых файлов: 26 добавлений и 8 удалений

Просмотреть файл

@ -1510,10 +1510,11 @@
<input />
</fieldset>
<figure id="figure">
<img src="../moz.png" alt="An awesome picture">
<figcaption id="figcaption">Caption for the awesome picture</figcaption>
</figure>
<!-- Depending on whether or not the image is cached, layout may be able to
optimize away spaces between the figure, img and figcaption tags. As
such, we should keep everything on one line to get consistent results.
-->
<figure id="figure"><img src="../moz.png" alt="An awesome picture"><figcaption id="figcaption">Caption for the awesome picture</figcaption></figure>
<footer id="footer">Some copyright info</footer>
<article>

Просмотреть файл

@ -234,6 +234,17 @@
title="no name from title"/>
</markup>
<!--
Disabled due to intermittent failures (bug 1436323) which became more
frequent due to the landing of bug 1383682. The latter bug made loading
of images from cache much more consistent, which appears to have impacted
the timing for this test case. If the image is switched to a unique
image (e.g. always decoding since there is no cache), the failure rate
increases, presumably because the test is dependent on a specific ordering
of events, and implicitly assumes the image is loaded immediately.
-->
<!--
<markup id="HTMLInputImageTest"
ref="html:input" ruleset="HTMLInputImage">
<html:span id="l1" textequiv="test2">test2</html:span>
@ -249,6 +260,7 @@
data="no name from data"
title="name from title"/>
</markup>
-->
<markup id="HTMLInputImageNoValidSrcTest"
ref="html:input" ruleset="HTMLInputImageNoValidSrc">

Просмотреть файл

@ -227,7 +227,9 @@
<div id="c6">This <abbr title="accessibility">a11y</abbr> test</div>
<div id="c7">This <acronym title="personal computer">PC</acronym> is broken</div>
<!-- only whitespace between images should be exposed -->
<div id="c8"> <img src="../moz.png"> <img src="../moz.png"> </div>
<!-- Whitespace between images should be exposed. Whitespace between the
div and img tags will be inconsistent depending on the image cache
state and what optimizations layout was able to apply. -->
<div id="c8"><img src="../moz.png"> <img src="../moz.png"></div>
</body>
</html>

Просмотреть файл

@ -170,8 +170,11 @@
<pre id="test">
</pre>
<div id="container1"> <img src="../moz.png"> <img id="img1" src="../moz.png"> <img src="../moz.png"> </div>
<div> <a id="container2"></a> <a><img src="../moz.png"></a> </div>
<!-- Whitespace between the div and img tags will be inconsistent depending
on the image cache state and what optimizations layout was able to
apply. -->
<div id="container1"><img src="../moz.png"> <img id="img1" src="../moz.png"> <img src="../moz.png"></div>
<div><a id="container2"></a> <a><img src="../moz.png"></a></div>
<div id="eventdump"></div>
</body>