| Index: third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/ui-source-code.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/ui-source-code.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/ui-source-code.html
|
| index f19204fab138b5d034585f1c85441e0a891dab08..732d512832784fbb4c88850c2a385a05224a9776 100644
|
| --- a/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/ui-source-code.html
|
| +++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/ui-source-code.html
|
| @@ -28,7 +28,7 @@ function test()
|
|
|
| if (callNumber === 3) {
|
| // Check that sourceCodeProvider.requestContent won't be called anymore.
|
| - uiSourceCode.requestContent(function(content)
|
| + uiSourceCode.requestContent().then(function(content)
|
| {
|
| InspectorTest.assertEquals("text/javascript", WebInspector.NetworkProject.uiSourceCodeMimeType(uiSourceCode));
|
| InspectorTest.assertEquals("var x = 0;", content);
|
| @@ -37,9 +37,9 @@ function test()
|
| }
|
| }
|
| // Check that all callbacks will be invoked.
|
| - uiSourceCode.requestContent(didRequestContent.bind(null, 1));
|
| - uiSourceCode.requestContent(didRequestContent.bind(null, 2));
|
| - uiSourceCode.requestContent(didRequestContent.bind(null, 3));
|
| + uiSourceCode.requestContent().then(didRequestContent.bind(null, 1));
|
| + uiSourceCode.requestContent().then(didRequestContent.bind(null, 2));
|
| + uiSourceCode.requestContent().then(didRequestContent.bind(null, 3));
|
| }
|
| ]);
|
| };
|
|
|