Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(762)

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/network/network-filters.html

Issue 2570553002: Clear cache before running the test (Closed)
Patch Set: Fix Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/inspector/network/network-filters.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/network/network-filters.html b/third_party/WebKit/LayoutTests/http/tests/inspector/network/network-filters.html
index 2dba1356fa5aadc96ec87c954e586e50d936b270..85050936075c502c492bcb30dadcf2a657c981b4 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/network/network-filters.html
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/network/network-filters.html
@@ -5,16 +5,6 @@
<script>
function test()
{
- InspectorTest.recordNetwork();
-
- var totalResourceCount = 4;
- InspectorTest.makeFetch("resources/style.css", {}, ensureAllResources);
- InspectorTest.makeFetch("resources/abe.png", {}, () => {
- // Ensures result is cached.
- InspectorTest.makeFetch("resources/abe.png", {}, ensureAllResources);
- ensureAllResources();
- });
- InspectorTest.makeFetch("missing/foo.bar", {}, ensureAllResources);
var filterChecks = [{
filterText: "-.css",
isRegex: false
@@ -94,6 +84,18 @@ function test()
UI.panels.network._networkLogView._textFilterUI.setValue(value);
UI.panels.network._networkLogView._filterChanged(null); // event not used in this method, so passing null
}
+
+ InspectorTest.clearAllCaches();
pfeldman 2016/12/15 18:25:08 Why do you think Cache API is related to the flaki
+ InspectorTest.recordNetwork();
+
+ var totalResourceCount = 4;
+ InspectorTest.makeFetch("resources/style.css", {}, ensureAllResources);
+ InspectorTest.makeFetch("resources/abe.png", {}, () => {
+ // Ensures result is cached.
+ InspectorTest.makeFetch("resources/abe.png", {}, ensureAllResources);
+ ensureAllResources();
+ });
+ InspectorTest.makeFetch("missing/foo.bar", {}, ensureAllResources);
}
</script>
</head>

Powered by Google App Engine
This is Rietveld 408576698