Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(271)

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector-protocol/websocket/websocket-user-agent-override.html

Issue 2942573003: [DevTools] New harness for inspector-protocol layout tests (Closed)
Patch Set: Protocol -> dp Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698