3 if (window.layoutTestController) {
4 layoutTestController.dumpAsText();
5 layoutTestController.waitUntilDone();
8 if (history.length > 1) {
9 document.body.innerHTML = 'PASS';
10 if (window.layoutTestController)
11 layoutTestController.notifyDone();
14 var evt = document.createEvent("MouseEvents");
15 evt.initMouseEvent("click", true, true, window,
16 0, 0, 0, 0, 0, false, false, false, false, 0, null);
17 document.getElementById('anchor').dispatchEvent(evt);
21 <a id='anchor' href='data:text/html,<script>function deferCallbacks(defer){layoutTestController.setDefersLoading(defer)}</script><body onload="if(window.layoutTestController){deferCallbacks(true);layoutTestController.goBack();deferCallbacks(false)}">FAIL</body>'>go to second page</a>