| 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> | 4 <script> |
| 5 var test = function() | 5 var test = function() |
| 6 { | 6 { |
| 7 InspectorTest.reloadPage(step1); | 7 InspectorTest.reloadPage(step1); |
| 8 | 8 |
| 9 function step1() | 9 function step1() |
| 10 { | 10 { |
| 11 WebInspector.inspectorView.showPanel("network"); | 11 WebInspector.inspectorView.showPanel("network"); |
| 12 var requests = WebInspector.panels.network.requests; | 12 var requests = WebInspector.inspectorView.panel("network").requests; |
| 13 for (var i = 0; i < requests.length; ++i) | 13 for (var i = 0; i < requests.length; ++i) |
| 14 InspectorTest.assertTrue(requests[i].responseHeaderValue("Set-Cookie
") === undefined); | 14 InspectorTest.assertTrue(requests[i].responseHeaderValue("Set-Cookie
") === undefined); |
| 15 InspectorTest.addResult("Success, no Set-Cookie headers found."); | 15 InspectorTest.addResult("Success, no Set-Cookie headers found."); |
| 16 InspectorTest.completeTest(); | 16 InspectorTest.completeTest(); |
| 17 } | 17 } |
| 18 } | 18 } |
| 19 </script> | 19 </script> |
| 20 </head> | 20 </head> |
| 21 <body onload="runTest()"> | 21 <body onload="runTest()"> |
| 22 Tests there is no false positive Set-Cookie audit error. | 22 Tests there is no false positive Set-Cookie audit error. |
| 23 <img src="resources/abe.png"> | 23 <img src="resources/abe.png"> |
| 24 </body> | 24 </body> |
| 25 </html> | 25 </html> |
| OLD | NEW |