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 | 10 |
11 function test() | 11 function test() |
12 { | 12 { |
13 // Resources panel has heavy initialization that does not work well with rel
oading-from-test. | 13 // Resources panel has heavy initialization that does not work well with rel
oading-from-test. |
14 InspectorTest.runAfterPendingDispatches(function() { | 14 InspectorTest.runAfterPendingDispatches(function() { |
15 InspectorTest.reloadPage(step1); | 15 InspectorTest.reloadPage(step1); |
16 }); | 16 }); |
17 | 17 |
18 function step1() | 18 function step1() |
19 { | 19 { |
20 InspectorTest.runAfterResourcesAreFinished(["resource-tree-reload-iframe
.html", "script-initial.js", "styles-initial-2.css"], step2); | 20 InspectorTest.runAfterResourcesAreFinished(["resource-tree-reload.html",
"resources-test.js", "inspector-test.js", "resource-tree-test.js", "resource-tr
ee-reload-iframe.html", "script-initial.js", "styles-initial-2.css"], step2); |
21 } | 21 } |
22 | 22 |
23 function step2() | 23 function step2() |
24 { | 24 { |
25 InspectorTest.dumpResourceTreeEverything(); | 25 InspectorTest.dumpResourceTreeEverything(); |
26 InspectorTest.completeTest(); | 26 InspectorTest.completeTest(); |
27 } | 27 } |
28 } | 28 } |
29 | 29 |
30 </script> | 30 </script> |
31 | 31 |
32 </head> | 32 </head> |
33 | 33 |
34 <body> | 34 <body> |
35 <p> | 35 <p> |
36 Tests resource tree model on page reload, compares resource tree against golden.
Every line is important. | 36 Tests resource tree model on page reload, compares resource tree against golden.
Every line is important. |
37 </p> | 37 </p> |
38 | 38 |
39 <iframe src="resources/resource-tree-reload-iframe.html" onload="runTest()"> | 39 <iframe src="resources/resource-tree-reload-iframe.html" onload="runTest()"> |
40 | 40 |
41 </body> | 41 </body> |
42 </html> | 42 </html> |
OLD | NEW |