OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../inspector-protocol-test.js"></script> | 4 <script src="../resources/inspector-protocol-test.js"></script> |
5 <script> | 5 <script> |
6 var ws; | 6 var ws; |
7 function openWebSocket(url) | 7 function openWebSocket(url) |
8 { | 8 { |
9 ws = new WebSocket(url); | 9 ws = new WebSocket(url); |
10 } | 10 } |
11 | 11 |
12 function test() | 12 function test() |
13 { | 13 { |
14 var url = "ws://localhost:8880/echo"; | 14 var url = "ws://localhost:8880/echo"; |
(...skipping 28 matching lines...) Expand all Loading... |
43 InspectorTest.log("User agent is: " + request.params.request.headers["Us
er-Agent"]); | 43 InspectorTest.log("User agent is: " + request.params.request.headers["Us
er-Agent"]); |
44 InspectorTest.completeTest(); | 44 InspectorTest.completeTest(); |
45 } | 45 } |
46 } | 46 } |
47 </script> | 47 </script> |
48 </head> | 48 </head> |
49 <body onload="runTest();"> | 49 <body onload="runTest();"> |
50 <p>Tests that WebSocket headers are set properly from overriden User Agent.</p> | 50 <p>Tests that WebSocket headers are set properly from overriden User Agent.</p> |
51 </body> | 51 </body> |
52 </html> | 52 </html> |
OLD | NEW |