| if (location.hash == "") { |
| if (window.layoutTestController) { |
| layoutTestController.dumpAsText(); |
| layoutTestController.waitUntilDone(); |
| history.pushState({ }, "", window.location + "#1"); |
| window.location.href = 'data:text/html, \ |
| <html style="height: 200%"> \ |
| document.body.offsetWidth; \ |
| setTimeout("window.history.back();", 0); \ |
| var result = document.getElementById("result"); |
| result.innerHTML = "Success if the web process did not crash." |
| if (window.layoutTestController) |
| layoutTestController.notifyDone(); |
| <body onpageshow="navigate();"> |
| <div id="result">Test did not complete</div> |