Use testRunner instead of layoutTestController in tests still found to be using layou...
[WebKit-https.git] / LayoutTests / http / tests / navigation / lockedhistory-iframe.html
1 <html>
2 <head>
3 <script src="resources/document-location.js"></script>
4 <script type="text/javascript">
5 testRunner.dumpBackForwardList();
6 testRunner.dumpAsText();
7
8 var myFrame;
9 function myCallbackFunction() {
10     myFrame.src = '#';
11 }
12 </script>
13 </head>
14 <body>
15 <p>This test verifies that setting the iframe.src through javascript to # does not add a history item. If the test passes you'll see only one history item.</p>
16 <script type="text/javascript">
17 myFrame = document.createElement("iframe");    
18 myFrame.src = "javascript:document.write('<script type=text/javascript>window.parent.myCallbackFunction();<\/script>');";
19 document.body.appendChild(myFrame);
20 </script>
21 </body>
22 </html>