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

Unified Diff: third_party/WebKit/LayoutTests/inspector/elements/css-rule-hover-highlights-selectors.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/elements/css-rule-hover-highlights-selectors.html
diff --git a/third_party/WebKit/LayoutTests/inspector/elements/css-rule-hover-highlights-selectors.html b/third_party/WebKit/LayoutTests/inspector/elements/css-rule-hover-highlights-selectors.html
index 1795954fc66e90381b7c7bc6d45765426be2c1d8..62a3434a9b00a03f94136dc21b35e7f8dc96df2d 100644
--- a/third_party/WebKit/LayoutTests/inspector/elements/css-rule-hover-highlights-selectors.html
+++ b/third_party/WebKit/LayoutTests/inspector/elements/css-rule-hover-highlights-selectors.html
@@ -9,6 +9,11 @@
</style>
<script>
+function requestAnimationFramePromise()
+{
+ return new Promise(fulfill => requestAnimationFrame(fulfill));
+}
+
function buildShadowDOM()
{
var host = document.querySelector("body");
@@ -42,7 +47,7 @@ function test()
{
var section = InspectorTest.firstMatchedStyleSection();
section._highlight();
- InspectorTest.waitForOverlayRepaint(onHighlighted);
+ InspectorTest.callFunctionInPageAsync("requestAnimationFramePromise").then(onHighlighted)
}
function onHighlighted()
@@ -64,7 +69,7 @@ function test()
{
var section = InspectorTest.firstMatchedStyleSection();
section._highlight();
- InspectorTest.waitForOverlayRepaint(onHighlighted);
+ InspectorTest.callFunctionInPageAsync("requestAnimationFramePromise").then(onHighlighted)
}
function onHighlighted()

Powered by Google App Engine
This is Rietveld 408576698