createDocument-with-used-doctype.html revision eff69b907ef2cd3a9af0351287a929c66f58e3f6
1<body>
2<iframe src="resources/createDocument-with-used-doctype-frame.html" onload="test()"></iframe>
3<script>
4if (window.layoutTestController) {
5    layoutTestController.dumpAsText();
6    layoutTestController.waitUntilDone();
7}
8
9function gc()
10{
11    if (window.GCController)
12        return GCController.collect();
13
14    for (var i = 0; i < 10000; i++)
15        var s = new String("");
16}
17
18// Reload multiple times, to make crashing more likely.
19var iterationsLeft = 50;
20function test()
21{
22    if (--iterationsLeft) {
23        frames[0].history.go(0);
24    } else {
25        gc();
26        document.body.textContent = frames[0].document.body.textContent;
27        if (window.layoutTestController)
28            layoutTestController.notifyDone();
29    }
30}
31</script>
32</body>
33