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

Side by Side Diff: LayoutTests/http/tests/inspector/network/load-resource-for-frontend.html

Issue 16199002: DevTools: Support asynchronous loading of resources without cross origin checks through backend for… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ... Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/http/tests/inspector/network/load-resource-for-frontend-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script src="../inspector-test.js"></script>
4 <script>
5 function test()
6 {
7 function testLoadForURL(url, next)
8 {
9 InspectorTest.addResult("Loading resource from " + url);
10 NetworkAgent.loadResourceForFrontend(WebInspector.resourceTreeModel.main Frame.id, url, callback);
11
12 function callback(error, content)
13 {
14 if (error)
15 InspectorTest.addResult("Failed: " + error);
16 else
17 InspectorTest.addResult("Success: " + content);
18 next();
19 }
20 }
21
22 InspectorTest.runTestSuite([
23 function testLocalResource(next)
24 {
25 testLoadForURL("file:///", next);
26 },
27
28 function testNetworkResource(next)
29 {
30 testLoadForURL("http://localhost:8080/inspector/network/resources/re source.php", next);
31 },
32 ]);
33 }
34 </script>
35 </head>
36 <body onload="runTest()">
37 </body>
38 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/inspector/network/load-resource-for-frontend-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698