1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/bugs/445004-1.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,31 @@ 1.4 +<!DOCTYPE html> 1.5 +<html class="reftest-wait"> 1.6 + <head> 1.7 + <script> 1.8 + var loads = 0; 1.9 + function loadStarted() { 1.10 + ++loads; 1.11 + } 1.12 + function loadEnded() { 1.13 + --loads; 1.14 + if (loads == 0) { 1.15 + document.documentElement.className = ""; 1.16 + } 1.17 + } 1.18 + loadStarted(); 1.19 + window.onload = function() { 1.20 + if (location.protocol != 'file:') { 1.21 + var txt = document.createTextNode('Must be run from file://'); 1.22 + var div = document.createElement("div"); 1.23 + div.appendChild(txt); 1.24 + document.body.appendChild(div); 1.25 + } 1.26 + loadEnded(); 1.27 + } 1.28 + </script> 1.29 + </head> 1.30 + <body> 1.31 + <iframe width="500" height="200" src="subdir/445004-subframe.html" 1.32 + onload="window.frames[0].doIt();"></iframe> 1.33 + </body> 1.34 +</html>