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

Unified 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, 7 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/inspector/network/load-resource-for-frontend.html
diff --git a/LayoutTests/http/tests/inspector/network/load-resource-for-frontend.html b/LayoutTests/http/tests/inspector/network/load-resource-for-frontend.html
new file mode 100644
index 0000000000000000000000000000000000000000..a21dfcf2cb17881ddea69cf123efc8a3ccb41aa6
--- /dev/null
+++ b/LayoutTests/http/tests/inspector/network/load-resource-for-frontend.html
@@ -0,0 +1,38 @@
+<html>
+<head>
+<script src="../inspector-test.js"></script>
+<script>
+function test()
+{
+ function testLoadForURL(url, next)
+ {
+ InspectorTest.addResult("Loading resource from " + url);
+ NetworkAgent.loadResourceForFrontend(WebInspector.resourceTreeModel.mainFrame.id, url, callback);
+
+ function callback(error, content)
+ {
+ if (error)
+ InspectorTest.addResult("Failed: " + error);
+ else
+ InspectorTest.addResult("Success: " + content);
+ next();
+ }
+ }
+
+ InspectorTest.runTestSuite([
+ function testLocalResource(next)
+ {
+ testLoadForURL("file:///", next);
+ },
+
+ function testNetworkResource(next)
+ {
+ testLoadForURL("http://localhost:8080/inspector/network/resources/resource.php", next);
+ },
+ ]);
+}
+</script>
+</head>
+<body onload="runTest()">
+</body>
+</html>
« 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