1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/image/sync-image-switch-1d.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 + <input type="image" 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("input"); 1.11 + img.src = otherImageSrc; 1.12 + img.style.width = img.width + "px"; 1.13 + img.style.height = img.height + "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>