| Index: third_party/WebKit/LayoutTests/inspector/tracing/anonymous-image-object.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector/tracing/anonymous-image-object.html b/third_party/WebKit/LayoutTests/inspector/tracing/anonymous-image-object.html
|
| index 47b299a5ab30f400048b272a60d61d1966860daa..9c3ef5196d6ee717069501a10b4565303962cfb3 100644
|
| --- a/third_party/WebKit/LayoutTests/inspector/tracing/anonymous-image-object.html
|
| +++ b/third_party/WebKit/LayoutTests/inspector/tracing/anonymous-image-object.html
|
| @@ -9,8 +9,10 @@ div.marker::before {
|
| <script src="../../http/tests/inspector/timeline-test.js"></script>
|
| <script>
|
|
|
| -function doActions(callback)
|
| +function doActions()
|
| {
|
| + var callback;
|
| + var promise = new Promise((fulfill) => callback = fulfill);
|
| document.getElementById("marker").classList.add("marker");
|
| var img = document.createElement("img");
|
| img.src = "resources/test.bmp";
|
| @@ -19,6 +21,7 @@ function doActions(callback)
|
| {
|
| testRunner.layoutAndPaintAsyncThen(callback);
|
| }
|
| + return promise;
|
| }
|
|
|
| function test()
|
|
|