image/test/reftest/downscaling/downscale-8px.html
author Nicholas Nethercote <nnethercote@mozilla.com>
Tue, 23 Feb 2016 10:58:05 +1100
changeset 321572 98366ad0baa872b36df521e683b790ba7f768117
child 501768 803b224d52a0940b4fb4b3b9cffc6a1fa6e5d4ee
permissions -rw-r--r--
Bug 1249550 (part 2) - Add a test. r=tn.

<!DOCTYPE HTML>
<html class="reftest-wait">
<head>
<title>Image reftest wrapper</title>
<style type="text/css">
  #image1 { background-color: rgb(10, 250, 100); }
</style>
<script>
  // The image is loaded async after the page loads.
  // Wait for it to finish loading.
  function onImageLoad() {
    document.documentElement.removeAttribute("class");
  };
</script>
</head>
<body>
<img width="8px" id="image1">
<script>
  // Use as "wrapper.html?image.png"
  var imgURL = document.location.search.substr(1);
  document.images[0].onload = onImageLoad;
  document.images[0].onerror = onImageLoad;
  document.images[0].alt = "";
  document.images[0].src = imgURL;
</script>
</body>
</html>