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

Unified Diff: third_party/WebKit/LayoutTests/inspector/tracing/timeline-paint/paint-profiler-update.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/inspector/tracing/timeline-paint/paint-profiler-update.html
diff --git a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-paint/paint-profiler-update.html b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-paint/paint-profiler-update.html
index b8b5d78759739a8e68b60979be6a3e6f6429743a..7a0b2ece8805ef8c588694a48819d7f717562e4e 100644
--- a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-paint/paint-profiler-update.html
+++ b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-paint/paint-profiler-update.html
@@ -3,8 +3,10 @@
<script src="../../../http/tests/inspector/inspector-test.js"></script>
<script src="../../../http/tests/inspector/timeline-test.js"></script>
<script>
-function performActions(callback)
+function performActions()
{
+ var callback;
+ var promise = new Promise((fulfill) => callback = fulfill);
var square = document.getElementById("square");
step1();
@@ -19,6 +21,7 @@ function performActions(callback)
square.style.backgroundColor = "black";
testRunner.layoutAndPaintAsyncThen(callback);
}
+ return promise;
}
function test()
@@ -36,7 +39,7 @@ function test()
for (var event of events) {
if (event.name === WebInspector.TimelineModel.RecordType.Paint) {
paintEvents.push(event);
- if (!event.picture)
+ if (!event.picture)
InspectorTest.addResult("Event without picture at " + paintEvents.length);
}
}

Powered by Google App Engine
This is Rietveld 408576698