OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../inspector-protocol/inspector-protocol-test.js"></script> | 4 <script src="../inspector-protocol/resources/inspector-protocol-test.js"></scrip
t> |
5 <script> | 5 <script> |
6 function test() | 6 function test() |
7 { | 7 { |
8 // When chunk encoded the last chunk will always be 5 bytes "0\r\n\r\n" and | 8 // When chunk encoded the last chunk will always be 5 bytes "0\r\n\r\n" and |
9 // we do not receive a dataReceived event and instead it's in loadingFinishe
d event. | 9 // we do not receive a dataReceived event and instead it's in loadingFinishe
d event. |
10 const HTTP_CLOSING_CHUNK_SIZE = 5; | 10 const HTTP_CLOSING_CHUNK_SIZE = 5; |
11 | 11 |
12 | 12 |
13 InspectorTest.eventHandler["Network.requestWillBeSent"] = onRequestWillBeSen
t; | 13 InspectorTest.eventHandler["Network.requestWillBeSent"] = onRequestWillBeSen
t; |
14 InspectorTest.eventHandler["Network.responseReceived"] = onResponseReceived; | 14 InspectorTest.eventHandler["Network.responseReceived"] = onResponseReceived; |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 } | 127 } |
128 } | 128 } |
129 | 129 |
130 enableNetwork(); | 130 enableNetwork(); |
131 } | 131 } |
132 </script> | 132 </script> |
133 </head> | 133 </head> |
134 <body onload="runTest();"> | 134 <body onload="runTest();"> |
135 <p>Ensures that data and header length sent from protocol is proper sizes</p> | 135 <p>Ensures that data and header length sent from protocol is proper sizes</p> |
136 </body> | 136 </body> |
OLD | NEW |