| Index: third_party/WebKit/LayoutTests/inspector/tracing/timeline-paint/timeline-paint.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-paint/timeline-paint.html b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-paint/timeline-paint.html
|
| index a49206ce66687a2738aaf206b83ff80f174f6a8b..855d02ee2ff4a1adffb99b74767e200f953e2cd3 100644
|
| --- a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-paint/timeline-paint.html
|
| +++ b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-paint/timeline-paint.html
|
| @@ -4,22 +4,16 @@
|
| <script src="../../../http/tests/inspector/timeline-test.js"></script>
|
| <script>
|
|
|
| -function display(callback)
|
| +function display()
|
| {
|
| - requestAnimationFrame(function() {
|
| - document.body.style.backgroundColor = "blue";
|
| - if (window.testRunner)
|
| - testRunner.layoutAndPaintAsyncThen(callback);
|
| - });
|
| + document.body.style.backgroundColor = "blue";
|
| + 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()
|
|
|