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

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/streams/writable-streams/general.js

Issue 2695813009: Import wpt@503f5b5f78ec4e87d144f78609f363f0ed0ea8db (Closed)
Patch Set: Skip some tests Created 3 years, 10 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/external/wpt/streams/writable-streams/general.js
diff --git a/third_party/WebKit/LayoutTests/external/wpt/streams/writable-streams/general.js b/third_party/WebKit/LayoutTests/external/wpt/streams/writable-streams/general.js
index c284338a3c381a423c6365357d3ebb70afa31c72..bb48859ef6aeb8da2b27bb8dd12db1ad4df959af 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/streams/writable-streams/general.js
+++ b/third_party/WebKit/LayoutTests/external/wpt/streams/writable-streams/general.js
@@ -33,6 +33,17 @@ promise_test(() => {
}, 'desiredSize on a writer for a closed stream');
test(() => {
+ const ws = new WritableStream({
+ start(c) {
+ c.error();
+ }
+ });
+
+ const writer = ws.getWriter();
+ assert_equals(writer.desiredSize, null, 'desiredSize should be null');
+}, 'desiredSize on a writer for an errored stream');
+
+test(() => {
const ws = new WritableStream({});
const writer = ws.getWriter();

Powered by Google App Engine
This is Rietveld 408576698