blob: 3659936a8c8586c3a78e647a24602fb7943e4f51 [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": InspectorTest.allowRequest,
"redirect2.pl": InspectorTest.allowRequest,
"redirect3.pl": InspectorTest.allowRequest,
"final.js": InspectorTest.allowRequest,
};
InspectorTest.startInterceptionTest(requestInterceptedDict, 1);
}
</script>
</head>
<body onload="runTest();">
<p>Tests interception of redirects.</a>
</p>
</body>
</html>