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

Unified Diff: third_party/WebKit/LayoutTests/inspector/tracing/timeline-network/timeline-network-resource-details.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-network/timeline-network-resource-details.html
diff --git a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-network/timeline-network-resource-details.html b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-network/timeline-network-resource-details.html
index 58da539fa762fcedb3a2fbc6e6a095551266ff42..9779fc1dfbac5ea43ddc3e9a466d72f57cba7122 100644
--- a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-network/timeline-network-resource-details.html
+++ b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-network/timeline-network-resource-details.html
@@ -4,8 +4,10 @@
<script src="../../../http/tests/inspector/timeline-test.js"></script>
<script>
-function performActions(callback)
+function performActions()
{
+ var callback;
+ var promise = new Promise((fulfill) => callback = fulfill);
function onRequestFinished()
{
if (!--requestsPending)
@@ -21,6 +23,7 @@ function performActions(callback)
script.src = "timeline-network-resource.js";
document.body.appendChild(script);
window.timelineNetworkResourceEvaluated = onRequestFinished;
+ return promise;
}
function test()

Powered by Google App Engine
This is Rietveld 408576698