summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/http/tests/misc/missing-style-sheet.html
blob: f05bed7fd2534fd6fdd72d570b044e6d6fc59007 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<script>
    if (window.testRunner)
        testRunner.dumpAsText();
    function didLoad()
    {
        document.getElementById("loadStatus").innerText = "PASS: Load event fired.";
    }
    window.addEventListener("load", didLoad);
</script>

<link href="/adeleandbethrock.css" rel="stylesheet" type="text/css">

This test passes if it does not ASSERT that the document's pending style sheet count is less than 0, and the load event fires.
<p id="loadStatus">
FAIL: Load event did not fire.
</p>