• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2<head>
3<script>
4
5function navigate()
6{
7    if (location.hash == "") {
8        if (window.layoutTestController) {
9            layoutTestController.dumpAsText();
10            layoutTestController.waitUntilDone();
11        }
12
13        history.pushState({ }, "", window.location + "#1");
14        setTimeout(function() {
15            window.location.href = 'data:text/html, \
16                <html style="height: 200%"> \
17                <body onunload=""> \
18                <script> \
19                    document.body.offsetWidth; \
20                    setTimeout("window.history.back();", 0); \
21                <' + '/script> \
22                </body> \
23                </html> \
24            ';
25        }, 0);
26        return;
27    }
28
29    setTimeout(function () {
30        var result = document.getElementById("result");
31        result.innerHTML = "Success if the web process did not crash."
32        if (window.layoutTestController)
33            layoutTestController.notifyDone();
34    }, 0);
35}
36
37</script>
38</head>
39<body onpageshow="navigate();">
40    <div id="result">Test did not complete</div>
41</body>
42</htmL>
43