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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/resource-tree/resource-request-content-while-loading.html

Issue 1570663003: Mark some http/tests/inspector/resource-tree as slow, unflake others. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months 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/resource-tree/resource-request-content-while-loading.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/resource-tree/resource-request-content-while-loading.html b/third_party/WebKit/LayoutTests/http/tests/inspector/resource-tree/resource-request-content-while-loading.html
index ad3140deed655ef5c16d4b262b28d60b3674c339..d8ef4de55ba13f53601a4c2fd25112abe0003392 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/resource-tree/resource-request-content-while-loading.html
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/resource-tree/resource-request-content-while-loading.html
@@ -25,15 +25,20 @@ function test()
if (request.url.indexOf("styles-initial") === -1)
return;
resource = InspectorTest.resourceMatchingURL("styles-initial");
- if (!resource || !resource.request || contentWasRequested)
- return;
+ if (!resource || !resource.request || contentWasRequested) {
+ InspectorTest.addResult("Cannot find resource");
+ InspectorTest.completeTest();
+ }
resource.requestContent(contentLoaded);
contentWasRequested = true;
}
function pageAgentGetResourceContentCalled()
{
- InspectorTest.assertTrue(resource.request.finished);
+ if (!resource.request.finished) {
+ InspectorTest.addResult("Request must be finished before calling getResourceContent");
+ InspectorTest.completeTest();
+ }
}
function contentLoaded(content)

Powered by Google App Engine
This is Rietveld 408576698