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

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

Issue 2503573002: [Devtools] Fixed flakey network test (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/inspector/network/har-content.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/network/har-content.html b/third_party/WebKit/LayoutTests/http/tests/inspector/network/har-content.html
index 97bd77464f49d4d1890a6335d478621399715bd4..671548596c61270a26a75c00ade6e07a6f971742 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/network/har-content.html
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/network/har-content.html
@@ -7,12 +7,19 @@
<script>
var test = function()
{
- function step1()
+ InspectorTest.NetworkAgent.setCacheDisabled(true, sendCSSRequest);
+
+ function sendCSSRequest()
{
- InspectorTest.makeSimpleXHR("GET", "resources/binary.data", false, step2);
+ InspectorTest.makeSimpleXHR("GET", "resources/initiator.css", false, sendBinaryRequest);
}
- function step2()
+ function sendBinaryRequest()
+ {
+ InspectorTest.makeSimpleXHR("GET", "resources/binary.data", false, makeHAR);
+ }
+
+ function makeHAR()
{
var writer = new Network.HARWriter();
var stream = new InspectorTest.StringOutputStream(onSaved);
@@ -59,8 +66,6 @@ var test = function()
InspectorTest.addResult("FAIL: can't find resource for " + regexp);
return null;
}
-
- InspectorTest.makeSimpleXHR("GET", "resources/initiator.css", false, step1);
}
</script>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698