| Index: third_party/WebKit/LayoutTests/http/tests/inspector-protocol/network/redirect-interception-modified.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/network/redirect-interception-modified.html b/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/network/redirect-interception-modified.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..188ae1e896bbe0b2319276607d17035aaceaf1e9
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/network/redirect-interception-modified.html
|
| @@ -0,0 +1,37 @@
|
| +<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": function(event) {
|
| + InspectorTest.modifyRequest(event, {"url": "alternative.js"});
|
| + },
|
| + };
|
| +
|
| + InspectorTest.startInterceptionTest(interceptedRequestDict,
|
| + interceptedRedirectDict);
|
| +}
|
| +</script>
|
| +</head>
|
| +<body onload="runTest();">
|
| +<p>Tests interception of redirects.</a>
|
| +</p>
|
| +</body>
|
| +</html>
|
|
|