summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/445004-1.html
blob: 2535e0164219da58275765d90fc15a4e56f5f9ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!DOCTYPE html>
<html class="reftest-wait">
  <head>
    <script>
      var loads = 0;
      function loadStarted() {
        ++loads;
      }
      function loadEnded() {
        --loads;
        if (loads == 0) {
          document.documentElement.className = "";
        }
      }
      loadStarted();
      window.onload = function() {
        if (location.protocol != 'file:') {
          var txt = document.createTextNode('Must be run from file://');
          var div = document.createElement("div");
          div.appendChild(txt);
          document.body.appendChild(div);
        }
        loadEnded();
      }
    </script>
  </head>  
  <body>
    <iframe width="500" height="200" src="subdir/445004-subframe.html"
            onload="window.frames[0].doIt();"></iframe>
  </body>
</html>