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

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 <!DOCTYPE html>
     2 <!-- Any copyright is dedicated to the Public Domain.
     3    - http://creativecommons.org/publicdomain/zero/1.0/ -->
     4 <html class="reftest-wait">
     5 <head>
     6   <script>
     7     function snapshot() {
     8       document.documentElement.removeAttribute('class');
     9     }
    10   </script>
    11 </head>
    12 <!-- NOTE: Using setTimeout to wait for high-quality downscaled version of
    13      image to be ready, because there's nothing better we can do. If we fix
    14      Bug 1006883, we can do away with this setTimeout.
    16      For now, the setTimeout is just here to increase the likelihood that we
    17      actually test the high-quality downscaled version of the image. If the
    18      setTimeout happens to fire before the high-quality downscaled rendering is
    19      ready, then this the test will pass without testing what it's trying to
    20      test, which is fine as long as that's rare.  -->
    21 <body onload="setTimeout(snapshot, 50)">
    22   <img src="downscale-1-bigimage.png" style="height: 20px; width: 20px">
    23 </body>
    24 </html>

mercurial