image/test/reftest/downscaling/downscale-1.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/image/test/reftest/downscaling/downscale-1.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,24 @@
     1.4 +<!DOCTYPE html>
     1.5 +<!-- Any copyright is dedicated to the Public Domain.
     1.6 +   - http://creativecommons.org/publicdomain/zero/1.0/ -->
     1.7 +<html class="reftest-wait">
     1.8 +<head>
     1.9 +  <script>
    1.10 +    function snapshot() {
    1.11 +      document.documentElement.removeAttribute('class');
    1.12 +    }
    1.13 +  </script>
    1.14 +</head>
    1.15 +<!-- NOTE: Using setTimeout to wait for high-quality downscaled version of
    1.16 +     image to be ready, because there's nothing better we can do. If we fix
    1.17 +     Bug 1006883, we can do away with this setTimeout.
    1.18 +
    1.19 +     For now, the setTimeout is just here to increase the likelihood that we
    1.20 +     actually test the high-quality downscaled version of the image. If the
    1.21 +     setTimeout happens to fire before the high-quality downscaled rendering is
    1.22 +     ready, then this the test will pass without testing what it's trying to
    1.23 +     test, which is fine as long as that's rare.  -->
    1.24 +<body onload="setTimeout(snapshot, 50)">
    1.25 +  <img src="downscale-1-bigimage.png" style="height: 20px; width: 20px">
    1.26 +</body>
    1.27 +</html>

mercurial