| Index: third_party/WebKit/LayoutTests/inspector/tracing/timeline-style/parse-author-style-sheet.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-style/parse-author-style-sheet.html b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-style/parse-author-style-sheet.html
|
| index 91c39511ddcadbd2071701bd4a40a4eda2469889..59ffabfa79a866b6c5844bfd12bae77ed149a703 100644
|
| --- a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-style/parse-author-style-sheet.html
|
| +++ b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-style/parse-author-style-sheet.html
|
| @@ -5,14 +5,14 @@
|
| <script src="../../tracing-test.js"></script>
|
| <script>
|
|
|
| -function importStyle(onComplete)
|
| +function importStyle()
|
| {
|
| var link = document.createElement('link');
|
| link.setAttribute('rel', 'stylesheet');
|
| link.type = 'text/css';
|
| link.href = '../resources/style.css';
|
| - document.head.appendChild(link);
|
| - link.onload = onComplete.bind(this, null);
|
| + document.head.appendChild(link);
|
| + return new Promise((fulfill) => link.onload = fulfill);
|
| }
|
|
|
| function test()
|
|
|