| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../inspector-test.js"></script> | 3 <script src="../inspector-test.js"></script> |
| 4 <script src="../resources-test.js"></script> | 4 <script src="../resources-test.js"></script> |
| 5 <script src="resource-tree-test.js"></script> | 5 <script src="resource-tree-test.js"></script> |
| 6 | 6 |
| 7 <link rel="stylesheet" href="resources/styles-initial.css"> | 7 <link rel="stylesheet" href="resources/styles-initial.css"> |
| 8 | 8 |
| 9 <script> | 9 <script> |
| 10 function navigateIframe() | 10 function navigateIframe() |
| 11 { | 11 { |
| 12 var iframe = document.getElementById("iframe"); | 12 var iframe = document.getElementById("iframe"); |
| 13 iframe.setAttribute("src", "resources/resource-tree-frame-navigate-iframe-af
ter.html"); | 13 iframe.setAttribute("src", "resources/resource-tree-frame-navigate-iframe-af
ter.html"); |
| 14 document.body.appendChild(iframe); | |
| 15 } | 14 } |
| 16 | 15 |
| 17 function test() | 16 function test() |
| 18 { | 17 { |
| 19 InspectorTest.addResult("Before navigation"); | 18 InspectorTest.addResult("Before navigation"); |
| 20 InspectorTest.addResult("===================================="); | 19 InspectorTest.addResult("===================================="); |
| 21 InspectorTest.dumpResourceTreeEverything(); | 20 InspectorTest.dumpResourceTreeEverything(); |
| 22 InspectorTest.addConsoleSniffer(step2); | 21 InspectorTest.addConsoleSniffer(step2); |
| 23 InspectorTest.evaluateInPage("navigateIframe()"); | 22 InspectorTest.evaluateInPage("navigateIframe()"); |
| 24 | 23 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 38 | 37 |
| 39 <body> | 38 <body> |
| 40 <p> | 39 <p> |
| 41 Tests resource tree model on iframe navigation, compares resource tree against g
olden. Every line is important. | 40 Tests resource tree model on iframe navigation, compares resource tree against g
olden. Every line is important. |
| 42 </p> | 41 </p> |
| 43 | 42 |
| 44 <iframe id="iframe" src="resources/resource-tree-frame-navigate-iframe-before.ht
ml" onload="runTest()"> | 43 <iframe id="iframe" src="resources/resource-tree-frame-navigate-iframe-before.ht
ml" onload="runTest()"> |
| 45 | 44 |
| 46 </body> | 45 </body> |
| 47 </html> | 46 </html> |
| OLD | NEW |