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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/tracing/timeline-script-parse.html

Issue 2208963002: [DevTools] Removed InspectorTest.invokeFunctionInPageAsync (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-promise-from-other-tests
Patch Set: a 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/http/tests/inspector/tracing/timeline-script-parse.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/tracing/timeline-script-parse.html b/third_party/WebKit/LayoutTests/http/tests/inspector/tracing/timeline-script-parse.html
index ce66fb88f603de41c340ef3b08569581a0510f3f..5431a42c75424bbd3d43d98cd738bfcf1946cb33 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/tracing/timeline-script-parse.html
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/tracing/timeline-script-parse.html
@@ -5,13 +5,16 @@
<script src="../network-test.js"></script>
<script>
-function performActions(callback)
+function performActions()
{
+ var callback;
+ var promise = new Promise((fulfill) => callback = fulfill);
var script = document.createElement("script");
script.src = "resources/timeline-script-parse.php";
script.async = true;
script.onload = callback;
document.body.appendChild(script);
+ return promise;
}
function test()

Powered by Google App Engine
This is Rietveld 408576698