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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/streams/writable-streams/write.js

Issue 2500833002: Import latest WritableStream tests from upstream (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 | « third_party/WebKit/LayoutTests/http/tests/streams/writable-streams/start.js ('k') | 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/streams/writable-streams/write.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/streams/writable-streams/write.js b/third_party/WebKit/LayoutTests/http/tests/streams/writable-streams/write.js
index 8bdb1c2f30a2666695a9bf32dbf1d9865aee26d3..f341e84b6d7ec609c8990f134a06ce6057a34804 100644
--- a/third_party/WebKit/LayoutTests/http/tests/streams/writable-streams/write.js
+++ b/third_party/WebKit/LayoutTests/http/tests/streams/writable-streams/write.js
@@ -96,7 +96,7 @@ promise_test(() => {
assert_equals(value, undefined, 'writePromise should be fulfilled with undefined');
}),
- delay(100).then(() => {
+ flushAsyncEvents().then(() => {
resolveSinkWritePromise();
resolveSinkWritePromise = undefined;
})
@@ -142,7 +142,7 @@ promise_test(t => {
promise_rejects(t, passedError, writePromise2, 'writePromise2 should reject with passedError')
.then(() => assert_equals(sinkWritePromiseRejectors.length, 0,
'sinkWritePromise should reject before writePromise2')),
- delay(100).then(() => {
+ flushAsyncEvents().then(() => {
sinkWritePromiseRejectors[0](passedError);
sinkWritePromiseRejectors = [];
})
@@ -194,7 +194,7 @@ promise_test(() => {
return writePromise
.then(() =>
- assert_equals(writeCount, numberOfWrites, `should have called sink's write ${numberOfWrites} times`));
+ assert_equals(writeCount, numberOfWrites, `should have called sink's write ${numberOfWrites} times`));
});
}, 'a large queue of writes should be processed completely');
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/streams/writable-streams/start.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698