summaryrefslogtreecommitdiffstats
path: root/LayoutTests/storage/close-during-stress-test.html
blob: 5cc52fd9550d99e44ab8630fc6702ed9428857e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<body>
<p>Should not crash or cause an assertion failure.</p>
<p>A JavaScript failure on the console is expected, however, as the global object is cleared when closing a frame.
It actually helps to cause database activity by throwing an exception from a callback.</p>
<script>
if (window.layoutTestController) {
    layoutTestController.waitUntilDone();
    layoutTestController.dumpAsText();
}

function startTest()
{
    setTimeout("document.getElementsByTagName('iframe')[0].src = 'about:blank'", 100);
    if (window.layoutTestController)
        setTimeout("layoutTestController.notifyDone()", 500);
}
</script>
<iframe src="resources/stress-frame.html" onload="startTest()"></iframe>
</body>