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

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

Issue 2668783003: Import wpt@767dc2a4f049c761bd146d61de2ea860a895a624 (Closed)
Patch Set: Update test expectations and baselines. Created 3 years, 11 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/piping/general.js
diff --git a/third_party/WebKit/LayoutTests/external/wpt/streams/piping/general.js b/third_party/WebKit/LayoutTests/external/wpt/streams/piping/general.js
index d91ede145f8f4d0ff86e73c592cc2c4bd1cdbc2e..42367a8e6d25eeb7679e99301f52dd28f15f72a4 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/streams/piping/general.js
+++ b/third_party/WebKit/LayoutTests/external/wpt/streams/piping/general.js
@@ -161,9 +161,9 @@ for (const preventAbort of [true, false]) {
pull() {
return Promise.reject(undefined);
}
- }, { preventAbort });
+ });
- return rs.pipeTo(new WritableStream()).then(
+ return rs.pipeTo(new WritableStream(), { preventAbort }).then(
() => assert_unreached('pipeTo promise should be rejected'),
value => assert_equals(value, undefined, 'rejection value should be undefined'));
@@ -177,7 +177,7 @@ for (const preventCancel of [true, false]) {
pull(controller) {
controller.enqueue(0);
}
- }, { preventCancel });
+ });
const ws = new WritableStream({
write() {
@@ -185,7 +185,7 @@ for (const preventCancel of [true, false]) {
}
});
- return rs.pipeTo(ws).then(
+ return rs.pipeTo(ws, { preventCancel }).then(
() => assert_unreached('pipeTo promise should be rejected'),
value => assert_equals(value, undefined, 'rejection value should be undefined'));

Powered by Google App Engine
This is Rietveld 408576698