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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/streams/writable-streams/close.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
Index: third_party/WebKit/LayoutTests/http/tests/streams/writable-streams/close.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/streams/writable-streams/close.js b/third_party/WebKit/LayoutTests/http/tests/streams/writable-streams/close.js
index 148cdd1b03ac1b0493c6e2bc8366241d0b0e43c9..bb63c62cdbba5a030a3a33aa313498ceeaf8326d 100644
--- a/third_party/WebKit/LayoutTests/http/tests/streams/writable-streams/close.js
+++ b/third_party/WebKit/LayoutTests/http/tests/streams/writable-streams/close.js
@@ -95,7 +95,7 @@ promise_test(() => {
assert_true(calledClose, 'ready should not be fulfilled before writer.close() is called');
assert_array_equals(ws.events, ['write', 'a'], 'sink abort() should not be called');
}),
- delay(100).then(() => {
+ flushAsyncEvents().then(() => {
writer.close();
calledClose = true;
})
@@ -107,7 +107,7 @@ promise_test(() => {
let asyncCloseFinished = false;
const ws = recordingWritableStream({
close() {
- return delay(50).then(() => {
+ return flushAsyncEvents().then(() => {
asyncCloseFinished = true;
});
}

Powered by Google App Engine
This is Rietveld 408576698