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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/response.js

Issue 1920703002: [Fetch API] Fix leaky layout tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/fetch/script-tests/response.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/response.js b/third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/response.js
index 62a245a5260505718fce0ea4a1d08db1fdb45631..66bccf2d4f520d9c57ca4ac6591741deeb8012ed 100644
--- a/third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/response.js
+++ b/third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/response.js
@@ -318,9 +318,10 @@ test(() => {
test(() => {
var res = new Response('hello');
- res.body.getReader();
+ const reader = res.body.getReader();
assert_false(res.bodyUsed);
assert_throws({name: 'TypeError'}, () => res.clone());
+ reader.releaseLock();
}, 'Locked => clone');
// Tests for MIME types.

Powered by Google App Engine
This is Rietveld 408576698