Index: third_party/WebKit/LayoutTests/http/tests/inspector-protocol/network/redirect-interception-blocked.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/network/redirect-interception-blocked.html b/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/network/redirect-interception-blocked.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..64d3bda0436f2909ab1b6fc097d5aac6a127502d |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/network/redirect-interception-blocked.html |
@@ -0,0 +1,36 @@ |
+<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": InspectorTest.allowRequest, |
+ }; |
+ |
+ var interceptedRedirectDict = { |
+ "redirect2.pl": function(event) { |
+ InspectorTest.blockRequest(event, "AddressUnreachable"); |
+ }, |
+ }; |
+ |
+ InspectorTest.startInterceptionTest(interceptedRequestDict, |
+ interceptedRedirectDict); |
+} |
+</script> |
+</head> |
+<body onload="runTest();"> |
+<p>Tests interception of redirects.</a> |
+</p> |
+</body> |
+</html> |