Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/http/tests/inspector/network-test.js |
| diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/network-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/network-test.js |
| index 3025527b756147b752d3a71141186b69baf84e5a..b772e56cabbe8e45aa16c3e8aa0d48ee5900b24b 100644 |
| --- a/third_party/WebKit/LayoutTests/http/tests/inspector/network-test.js |
| +++ b/third_party/WebKit/LayoutTests/http/tests/inspector/network-test.js |
| @@ -43,9 +43,9 @@ function makeXHRForJSONArguments(jsonArgs) |
| makeXHR(args.method, args.url, args.async, args.user, args.password, args.headers || [], args.withCredentials, args.payload, args.type, xhrLoadedCallback); |
| } |
| -function makeFetch(url, requestInitializer, callback) |
| +function makeFetch(url, requestInitializer) |
| { |
| - fetch(url, requestInitializer).then(callback).catch(callback); |
| + return fetch(url, requestInitializer).catch((e) => e); |
|
caseq
2016/08/05 17:56:41
e => e
kozy
2016/08/10 01:21:13
Done.
|
| } |
| var initialize_NetworkTest = function() { |
| @@ -117,7 +117,7 @@ InspectorTest.makeXHR = function(method, url, async, user, password, headers, wi |
| InspectorTest.makeFetch = function(url, requestInitializer, callback) |
| { |
| - InspectorTest.invokePageFunctionAsync("makeFetch", url, requestInitializer, callback); |
| + InspectorTest.callFunctionInPageAsync("makeFetch", [ url, requestInitializer ]).then(callback); |
|
caseq
2016/08/05 17:56:41
[url, requestInitializer] (i.e. nuke spaces)
kozy
2016/08/10 01:21:13
Done.
|
| } |
| InspectorTest.HARPropertyFormatters = { |