summaryrefslogtreecommitdiffstats
path: root/LayoutTests/http/tests/appcache/document-write-html-element-2.html
blob: bee9fe0b1c3ba6d858d15ecec2bd9fa766ee6a0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<html manifest="resources/document-write-html-element.manifest">
<script>
if (window.layoutTestController) {
    layoutTestController.dumpAsText();
    layoutTestController.waitUntilDone();
}

function test()
{
    document.write("SUCCESS, no assertion failure");
    document.write("<br>applicationCache.status == " + applicationCache.status);

    if (window.layoutTestController)
        layoutTestController.notifyDone();
}

applicationCache.oncached = test;
applicationCache.onnoupdate = test;
</script>