layout/reftests/image/sync-image-switch-1a.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/image/sync-image-switch-1a.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,16 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html class="reftest-wait">
     1.6 +  <img src="blue-16x20.png">
     1.7 +  <script>
     1.8 +    var otherImageSrc = "blue-32x32.png"
     1.9 +    window.onload = function() {
    1.10 +      var img = document.querySelector("img");
    1.11 +      img.src = otherImageSrc;
    1.12 +      img.style.width = img.naturalWidth + "px";
    1.13 +      img.style.height = img.naturalHeight + "px";
    1.14 +      document.documentElement.className = "";
    1.15 +    }
    1.16 +    var otherImage = new Image;
    1.17 +    otherImage.src = otherImageSrc;
    1.18 +  </script>
    1.19 +</html>

mercurial