Index: third_party/WebKit/LayoutTests/http/tests/inspector-protocol/network/request-interception-mock404.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/network/request-interception-mock404.html b/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/network/request-interception-mock404.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6ff92431f30f72671dc36c047bdddff65e9899ab |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/network/request-interception-mock404.html |
@@ -0,0 +1,31 @@ |
+<html> |
+<head> |
+<script type="text/javascript" src="../inspector-protocol-test.js"></script> |
+<script type="text/javascript" src="interception-test.js"></script> |
+ |
+<script> |
+function appendIframe() |
+{ |
+ var iframe = document.createElement("iframe"); |
+ iframe.src = "resources/redirect-iframe.html"; |
+ document.body.appendChild(iframe); |
+} |
+ |
+function test() |
+{ |
+ var interceptedRequestDict = { |
+ "redirect-iframe.html": InspectorTest.allowRequest, |
+ "redirect1.pl": function(event) { |
+ InspectorTest.mockResponse(event, "HTTP/1.1 404 Not Found\r\n\r\n"); |
+ }, |
+ }; |
+ |
+ InspectorTest.startInterceptionTest(interceptedRequestDict, {}); |
+} |
+</script> |
+</head> |
+<body onload="runTest();"> |
+<p>Tests a mock 404 resource.</a> |
+</p> |
+</body> |
+</html> |