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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector-protocol/network-fetch-content-with-error-status-code.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 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../inspector-protocol/inspector-protocol-test.js"></script> 3 <script src="../inspector-protocol/resources/inspector-protocol-test.js"></scrip t>
4 <script> 4 <script>
5 5
6 async function test() { 6 async function test() {
7 var requestWillBeSentPromise = InspectorTest.waitForEventPromise('Network.re questWillBeSent'); 7 var requestWillBeSentPromise = InspectorTest.waitForEventPromise('Network.re questWillBeSent');
8 // This url should be cross origin. 8 // This url should be cross origin.
9 const url = 'https://127.0.0.1:8443/inspector-protocol/resources/cors-data.p hp'; 9 const url = 'https://127.0.0.1:8443/inspector-protocol/resources/cors-data.p hp';
10 10
11 await InspectorTest.sendCommandPromise("Network.enable", {}); 11 await InspectorTest.sendCommandPromise("Network.enable", {});
12 InspectorTest.log("Network Enabled"); 12 InspectorTest.log("Network Enabled");
13 13
(...skipping 22 matching lines...) Expand all
36 InspectorTest.log("Response Body: " + message.result.body); 36 InspectorTest.log("Response Body: " + message.result.body);
37 37
38 InspectorTest.completeTest(); 38 InspectorTest.completeTest();
39 } 39 }
40 </script> 40 </script>
41 </head> 41 </head>
42 <body onload="runTest()"> 42 <body onload="runTest()">
43 <p>Test to make sure if an xhr is fetched with the response as a blob and cross origin devtools can get body.</p> 43 <p>Test to make sure if an xhr is fetched with the response as a blob and cross origin devtools can get body.</p>
44 </body> 44 </body>
45 </html> 45 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698