[EFL][DRT] Gardening failure cases on EFL build bot
[WebKit-https.git] / LayoutTests / loader / navigation-while-deferring-loads.html
1 <html>
2 <script>
3 if (window.layoutTestController) {
4     layoutTestController.dumpAsText();
5     layoutTestController.waitUntilDone();
6 }
7 function run() {
8     if (history.length > 1) {
9         document.body.innerHTML = 'PASS';
10         if (window.layoutTestController)
11           layoutTestController.notifyDone();
12         return;
13     }
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);
18 }
19 </script>
20 <body onload='run()'>
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>
22 </body>
23 </html>