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

Unified Diff: sky/tests/harness/reftest-mismatch.sky

Issue 826343003: Minor improvements to reftests. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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: sky/tests/harness/reftest-mismatch.sky
diff --git a/sky/tests/harness/reftest-mismatch.sky b/sky/tests/harness/reftest-mismatch.sky
index a016a24f693a457a4f31a582c7945ddca90e6c22..44bcc28f18cc38c3776918e5454f2fb0fbd28282 100644
--- a/sky/tests/harness/reftest-mismatch.sky
+++ b/sky/tests/harness/reftest-mismatch.sky
@@ -1,12 +1,9 @@
<foo>
+<import src="../resources/run-after-display.sky" as="runAfterDisplay" />
This is a mismatch reftest. Should not match.
<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>

Powered by Google App Engine
This is Rietveld 408576698