| Index: sky/tests/harness/reftest.sky
|
| diff --git a/sky/tests/harness/reftest.sky b/sky/tests/harness/reftest.sky
|
| index 7a7e586c04f026d4e6dcee8bd7fcea0507c1f183..14ac7626afb9c97c9c616cbabd8677c835aaabc5 100644
|
| --- a/sky/tests/harness/reftest.sky
|
| +++ b/sky/tests/harness/reftest.sky
|
| @@ -1,12 +1,9 @@
|
| <foo>
|
| +<import src="../resources/run-after-display.sky" as="runAfterDisplay" />
|
| This is a reftest.
|
| <script>
|
| -window.addEventListener('load', function() {
|
| - // TODO(ojan): requestAnimationFrame once we properly pump frames.
|
| - // https://github.com/domokit/mojo/issues/32
|
| - setTimeout(function() {
|
| - internals.notifyTestComplete("");
|
| - }, 100);
|
| -})
|
| +runAfterDisplay(function() {
|
| + internals.notifyTestComplete("");
|
| +});
|
| </script>
|
| </foo>
|
|
|