| 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..92d9867eab1655a6bd211c6e4b144b8e2913222c 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);
|
| }
|
|
|
| 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);
|
| }
|
|
|
| InspectorTest.HARPropertyFormatters = {
|
|
|