Index: third_party/WebKit/LayoutTests/http/tests/inspector-protocol/network/redirect-interception.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/network/redirect-interception.html b/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/network/redirect-interception.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..668193ddc1a72d14c413445e60d70d73e888b3f4 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/network/redirect-interception.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": InspectorTest.allowRequest, |
+ "redirect3.pl": InspectorTest.allowRequest, |
+ "final.js": InspectorTest.allowRequest, |
+ }; |
+ |
+ InspectorTest.startInterceptionTest(interceptedRequestDict, |
+ interceptedRedirectDict); |
+} |
+</script> |
+</head> |
+<body onload="runTest();"> |
+<p>Tests interception of redirects.</a> |
+</p> |
+</body> |
+</html> |