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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/streams/resources/test-utils.js

Issue 1902673003: Reflect recent spec changes to V8 Extra ReadableStream impl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed build Created 4 years, 7 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 unified diff | Download patch
OLDNEW
1 'use strict'; 1 'use strict';
2 2
3 self.getterRejects = (t, obj, getterName, target) => { 3 self.getterRejects = (t, obj, getterName, target) => {
4 const getter = Object.getOwnPropertyDescriptor(obj, getterName).get; 4 const getter = Object.getOwnPropertyDescriptor(obj, getterName).get;
5 5
6 return promise_rejects(t, new TypeError(), getter.call(target)); 6 return promise_rejects(t, new TypeError(), getter.call(target));
7 }; 7 };
8 8
9 self.methodRejects = (t, obj, methodName, target) => { 9 self.methodRejects = (t, obj, methodName, target) => {
10 const method = obj[methodName]; 10 const method = obj[methodName];
(...skipping 22 matching lines...) Expand all
33 // Present in some WebKit development environments 33 // Present in some WebKit development environments
34 GCController.collect(); 34 GCController.collect();
35 } else { 35 } else {
36 /* eslint-disable no-console */ 36 /* eslint-disable no-console */
37 console.warn('Tests are running without the ability to do manual garbage col lection. They will still work, but ' + 37 console.warn('Tests are running without the ability to do manual garbage col lection. They will still work, but ' +
38 'coverage will be suboptimal.'); 38 'coverage will be suboptimal.');
39 /* eslint-enable no-console */ 39 /* eslint-enable no-console */
40 } 40 }
41 }; 41 };
42 42
43 self.delay = ms => new Promise(resolve => setTimeout(resolve, ms)); 43 self.delay = ms => new Promise(resolve => step_timeout(resolve, ms));
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698