Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: third_party/WebKit/LayoutTests/inspector/tracing/timeline-style/parse-author-style-sheet.html

Issue 2208963002: [DevTools] Removed InspectorTest.invokeFunctionInPageAsync (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-promise-from-other-tests
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..2c09da21d72ef4d29544144aae36cc539a410e12 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,17 @@
<script src="../../tracing-test.js"></script>
<script>
-function importStyle(onComplete)
+function importStyle()
{
+ var callback;
+ var promies = new Promise((fulfill) => callback = fulfill);
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);
+ link.onload = callback.bind(this, null);
caseq 2016/08/05 17:56:42 use createLoadPromise()
kozy 2016/08/10 01:21:15 Done.
+ return promies;
}
function test()

Powered by Google App Engine
This is Rietveld 408576698