| Index: third_party/WebKit/LayoutTests/http/tests/inspector/network-test.js
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/network-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/network-test.js
|
| index 92ccdd6fa936ce7de68cf1bd036eb4796230e336..935fbb4b7ad1aeadb234d593a9cffae111f008ba 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/inspector/network-test.js
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/inspector/network-test.js
|
| @@ -124,6 +124,15 @@ InspectorTest.makeFetch = function(url, requestInitializer, callback)
|
| InspectorTest.callFunctionInPageAsync("makeFetch", [url, requestInitializer]).then(callback);
|
| }
|
|
|
| +InspectorTest.clearNetworkCache = function(finishedCallback)
|
| +{
|
| + // This turns cache off and then on, effectively clearning the cache.
|
| + var networkAgent = InspectorTest.NetworkAgent;
|
| + var promise = networkAgent.setCacheDisabled(true);
|
| + promise.then(networkAgent.setCacheDisabled.bind(networkAgent, false));
|
| + promise.then(finishedCallback);
|
| +}
|
| +
|
| InspectorTest.HARPropertyFormatters = {
|
| bodySize: "formatAsTypeName",
|
| compression: "formatAsTypeName",
|
|
|