Index: sky/tests/harness/reftest-mismatch-expected-mismatch.sky |
diff --git a/sky/tests/harness/reftest-mismatch-expected-mismatch.sky b/sky/tests/harness/reftest-mismatch-expected-mismatch.sky |
index 25e46f88ac019e580766e1026a7c26bcd2cae3b5..42f71f7abbbe993594a6d59def97ab9b47f9d80d 100644 |
--- a/sky/tests/harness/reftest-mismatch-expected-mismatch.sky |
+++ b/sky/tests/harness/reftest-mismatch-expected-mismatch.sky |
@@ -1,12 +1,9 @@ |
<foo> |
+<import src="../resources/run-after-display.sky" as="runAfterDisplay" /> |
This is a mismatch 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> |