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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/streams/writable-streams/byte-length-queuing-strategy.js

Issue 2772293002: Update WritableStream to new standard version (Closed)
Patch Set: Changes from domenic@ review Created 3 years, 8 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/streams/writable-streams/byte-length-queuing-strategy.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/streams/writable-streams/byte-length-queuing-strategy.js b/third_party/WebKit/LayoutTests/http/tests/streams/writable-streams/byte-length-queuing-strategy.js
deleted file mode 100644
index 611689f88171390ba22c4d2cf40be293d1478b2d..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/streams/writable-streams/byte-length-queuing-strategy.js
+++ /dev/null
@@ -1,33 +0,0 @@
-'use strict';
-
-if (self.importScripts) {
- self.importScripts('/resources/testharness.js');
-}
-
-promise_test(() => {
- let isDone = false;
- const ws = new WritableStream(
- {
- write() {
- return new Promise(resolve => {
- setTimeout(() => {
- isDone = true;
- resolve();
- }, 200);
- });
- },
-
- close() {
- assert_true(isDone, 'close is only called once the promise has been resolved');
- }
- },
- new ByteLengthQueuingStrategy({ highWaterMark: 1024 * 16 })
- );
-
- const writer = ws.getWriter();
- writer.write({ byteLength: 1024 });
-
- return writer.close();
-}, 'Closing a writable stream with in-flight writes below the high water mark delays the close call properly');
-
-done();

Powered by Google App Engine
This is Rietveld 408576698