| Index: third_party/WebKit/LayoutTests/inspector/tracing/timeline-paint/timeline-paint-with-style-recalc-invalidations.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-paint/timeline-paint-with-style-recalc-invalidations.html b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-paint/timeline-paint-with-style-recalc-invalidations.html
|
| index 9cb631294088624a12279445c75e825fa754b676..bea878939d664fc3b5dea584954467346896b71e 100644
|
| --- a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-paint/timeline-paint-with-style-recalc-invalidations.html
|
| +++ b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-paint/timeline-paint-with-style-recalc-invalidations.html
|
| @@ -4,23 +4,17 @@
|
| <script src="../../../http/tests/inspector/inspector-test.js"></script>
|
| <script src="../../../http/tests/inspector/timeline-test.js"></script>
|
| <script>
|
| -function display(callback)
|
| +function display()
|
| {
|
| - requestAnimationFrame(function() {
|
| - document.body.style.backgroundColor = "blue";
|
| - document.getElementById("testElement").style.backgroundColor = "salmon";
|
| - if (window.testRunner)
|
| - testRunner.layoutAndPaintAsyncThen(callback);
|
| - });
|
| + document.body.style.backgroundColor = "blue";
|
| + document.getElementById("testElement").style.backgroundColor = "salmon";
|
| + return waitForFrame();
|
| }
|
|
|
| -function updateSubframeAndDisplay(callback)
|
| +function updateSubframeAndDisplay()
|
| {
|
| - requestAnimationFrame(function() {
|
| - frames[0].document.body.children[0].style.backgroundColor = "green";
|
| - if (window.testRunner)
|
| - testRunner.layoutAndPaintAsyncThen(callback);
|
| - });
|
| + frames[0].document.body.children[0].style.backgroundColor = "green";
|
| + return waitForFrame();
|
| }
|
|
|
| function test()
|
|
|