| Index: third_party/WebKit/LayoutTests/http/tests/inspector-protocol/network/request-interception-modify-get-to-post.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/network/request-interception-modify-get-to-post.html b/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/network/request-interception-modify-get-to-post.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ef0e56ca6e627985067466cc04faae607451db0a
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/network/request-interception-modify-get-to-post.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 requestInterceptedDict = {
|
| + "redirect-iframe.html": InspectorTest.allowRequest,
|
| + "redirect1.pl": function(event) {
|
| + InspectorTest.modifyRequest(event, {
|
| + "url": "post-echo.pl",
|
| + "method": "POST",
|
| + "postData": "console.log('POST MODIFICATION SUCCESS!');"
|
| + });
|
| + },
|
| + };
|
| +
|
| + InspectorTest.startInterceptionTest(requestInterceptedDict, 1);
|
| +}
|
| +</script>
|
| +</head>
|
| +<body onload="runTest();">
|
| +<p>Tests modifying a GET into a POST.</a>
|
| +</p>
|
| +</body>
|
| +</html>
|
|
|