layout/reftests/reftest-sanity/test-async.xul

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/reftest-sanity/test-async.xul	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,15 @@
     1.4 +<?xml version="1.0"?>
     1.5 +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
     1.6 +        id="main"
     1.7 +        class="reftest-wait"
     1.8 +        style="background-color: red;"
     1.9 +        onload="HandleLoad()">
    1.10 +  <script>
    1.11 +    function HandleLoad() {
    1.12 +      setTimeout(function() {
    1.13 +        document.documentElement.style.backgroundColor = "green";
    1.14 +        document.documentElement.className = "";
    1.15 +      }, 100);
    1.16 +    }
    1.17 +  </script>
    1.18 +</window>

mercurial