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

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

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

mercurial