| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="inspector-test.js"></script> | 4 <script src="inspector-test.js"></script> |
| 5 <script src="network-test.js"></script> | 5 <script src="network-test.js"></script> |
| 6 | 6 |
| 7 <script> | 7 <script> |
| 8 | 8 |
| 9 function doXHR() | 9 function doXHR() |
| 10 { | 10 { |
| 11 var xhr = new XMLHttpRequest(); | 11 var xhr = new XMLHttpRequest(); |
| 12 xhr.open("POST", "resources/post-target.cgi", false); | 12 xhr.open("POST", "resources/post-target.cgi", false); |
| 13 xhr.setRequestHeader("Content-Type", "text/xml"); | 13 xhr.setRequestHeader("Content-Type", "text/xml"); |
| 14 xhr.send("<xml></xml>"); | 14 xhr.send("<xml></xml>"); |
| 15 } | 15 } |
| 16 | 16 |
| 17 var test = function() | 17 var test = function() |
| 18 { | 18 { |
| 19 InspectorTest.reloadPage(step1); | 19 InspectorTest.NetworkAgent.setCacheDisabled(true, reloadPage); |
| 20 |
| 21 function reloadPage() |
| 22 { |
| 23 InspectorTest.reloadPage(step1); |
| 24 } |
| 20 | 25 |
| 21 function step1() | 26 function step1() |
| 22 { | 27 { |
| 23 InspectorTest.evaluateInPage("doXHR()", step2); | 28 InspectorTest.evaluateInPage("doXHR()", step2); |
| 24 } | 29 } |
| 25 | 30 |
| 26 function step2() | 31 function step2() |
| 27 { | 32 { |
| 28 function findRequestByURL(url) | 33 function findRequestByURL(url) |
| 29 { | 34 { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 | 68 |
| 64 </head> | 69 </head> |
| 65 | 70 |
| 66 <body onload="runTest()"> | 71 <body onload="runTest()"> |
| 67 <p> | 72 <p> |
| 68 Tests conversion of Inspector's resource representation into HAR format. | 73 Tests conversion of Inspector's resource representation into HAR format. |
| 69 </p> | 74 </p> |
| 70 | 75 |
| 71 </body> | 76 </body> |
| 72 </html> | 77 </html> |
| OLD | NEW |