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

Unified Diff: third_party/WebKit/LayoutTests/inspector/tracing/timeline-paint/timeline-paint-and-multiple-style-invalidations.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/timeline-paint-and-multiple-style-invalidations.html
diff --git a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-paint/timeline-paint-and-multiple-style-invalidations.html b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-paint/timeline-paint-and-multiple-style-invalidations.html
index 0d9381c23e63fe5b17c31eaddf30a5b432d67796..69b8172d6c0f2a9c8d2953025d364ae10d69b1de 100644
--- a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-paint/timeline-paint-and-multiple-style-invalidations.html
+++ b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-paint/timeline-paint-and-multiple-style-invalidations.html
@@ -4,16 +4,13 @@
<script src="../../../http/tests/inspector/inspector-test.js"></script>
<script src="../../../http/tests/inspector/timeline-test.js"></script>
<script>
-function multipleStyleRecalcsAndDisplay(callback)
+function multipleStyleRecalcsAndDisplay()
{
- requestAnimationFrame(function() {
- document.getElementById("testElementOne").className = "red";
- var forceStyleRecalc1 = document.body.offsetTop;
- document.getElementById("testElementOne").className = "snow";
- var forceStyleRecalc2 = document.body.offsetTop;
- if (window.testRunner)
- testRunner.layoutAndPaintAsyncThen(callback);
- });
+ document.getElementById("testElementOne").className = "red";
+ var forceStyleRecalc1 = document.body.offsetTop;
+ document.getElementById("testElementOne").className = "snow";
+ var forceStyleRecalc2 = document.body.offsetTop;
+ return waitForFrame();
}

Powered by Google App Engine
This is Rietveld 408576698