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

Unified Diff: LayoutTests/http/tests/workers/resources/performance-timeline-worker.js

Issue 1192913007: Change BodyStreamBuffer to be FetchDataConsumerHandle-based and enable backpressure in Fetch API (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Clean up done. ready. Created 5 years, 6 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: LayoutTests/http/tests/workers/resources/performance-timeline-worker.js
diff --git a/LayoutTests/http/tests/workers/resources/performance-timeline-worker.js b/LayoutTests/http/tests/workers/resources/performance-timeline-worker.js
index f47c3b357af2d45b03a8664253aa6392e2e55dde..86f47b2a56a2ae84423d052db6e8eb4d5094cee8 100644
--- a/LayoutTests/http/tests/workers/resources/performance-timeline-worker.js
+++ b/LayoutTests/http/tests/workers/resources/performance-timeline-worker.js
@@ -34,6 +34,11 @@ promise_test(function(test) {
return resp.text();
})
.then(function(t) {
+ return new Promise(function(resolve, reject) {
hiroshige 2015/07/02 08:22:10 This is temporary fix: |performance| entries are u
+ setTimeout(function() { resolve(t); }, 1000);
+ });
+ })
+ .then(function(t) {
var expectedResources = ['/resources/testharness.js', '/resources/dummy.txt'];
assert_equals(performance.getEntriesByType('resource').length, expectedResources.length);
for (var i = 0; i < expectedResources.length; i++) {
« no previous file with comments | « LayoutTests/http/tests/serviceworker/resources/progressive.php ('k') | Source/core/fetch/FetchInitiatorTypeNames.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698