blob: f362a0a9ae8e5f79e086a75a920f3b82a0ec77f1 [file] [log] [blame]
<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 requestInterceptedDict = {
"redirect-iframe.html": InspectorTest.allowRequest,
"redirect1.pl": function(event) {
InspectorTest.mockResponse(event, "HTTP/1.1 404 Not Found\r\n\r\n");
},
};
InspectorTest.startInterceptionTest(requestInterceptedDict);
}
</script>
</head>
<body onload="runTest();">
<p>Tests a mock 404 resource.</a>
</p>
</body>
</html>