| Index: third_party/WebKit/LayoutTests/http/tests/inspector-protocol/network/request-interception-mock302.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/network/request-interception-mock302.html b/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/network/request-interception-mock302.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ea0c785cea4f1a77f9b694200598835c6e1590ae
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/network/request-interception-mock302.html
|
| @@ -0,0 +1,35 @@
|
| +<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) {
|
| + var rawResponse =
|
| + "HTTP/1.1 302 Found\r\n" +
|
| + "Location: final.js\r\n\r\n";
|
| + InspectorTest.mockResponse(event, rawResponse);
|
| + },
|
| + "final.js": InspectorTest.allowRequest,
|
| + };
|
| +
|
| + InspectorTest.startInterceptionTest(interceptedRequestDict, {});
|
| +}
|
| +</script>
|
| +</head>
|
| +<body onload="runTest();">
|
| +<p>Tests a mock 302 resource.</a>
|
| +</p>
|
| +</body>
|
| +</html>
|
|
|