summaryrefslogtreecommitdiffstats
path: root/layout/reftests/reftest-sanity/test-async.xul
blob: e8dc869ad3468dd8bad10166e517e0f5080512cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?xml version="1.0"?>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        id="main"
        class="reftest-wait"
        style="background-color: red;"
        onload="HandleLoad()">
  <script>
    function HandleLoad() {
      setTimeout(function() {
        document.documentElement.style.backgroundColor = "green";
        document.documentElement.className = "";
      }, 100);
    }
  </script>
</window>