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

Unified Diff: third_party/WebKit/LayoutTests/inspector/tracing/timeline-paint/layer-tree.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-paint/layer-tree.html
diff --git a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-paint/layer-tree.html b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-paint/layer-tree.html
index 5a3715c3e0350aacaebe7a4fd1e3b7d9731b74b4..770c665222e7cb00b706dc75d839cde0f626fc81 100644
--- a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-paint/layer-tree.html
+++ b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-paint/layer-tree.html
@@ -6,8 +6,10 @@
<script src="../../tracing-test.js"></script>
<script>
-function doActions(callback)
+function doActions()
{
+ var callback;
+ var promise = new Promise((fulfill) => callback = fulfill);
var div = document.createElement("div");
div.id = "b4";
document.getElementById("a").appendChild(div);
@@ -17,6 +19,7 @@ function doActions(callback)
style.textContent = ".layer { transform: translateZ(10px); opacity: 0.8; }";
document.head.appendChild(style);
generateFrames(3, callback);
caseq 2016/08/05 17:56:42 Yeah, let's make generateFrames() return promise.
kozy 2016/08/10 01:21:14 Done.
+ return promise;
}
function test()

Powered by Google App Engine
This is Rietveld 408576698