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

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

Issue 826343003: Minor improvements to reftests. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Move the check to TestRunner::OnTestComplete so we only assert if we're actually running a pixel/re… 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
« no previous file with comments | « sky/tests/harness/reftest.sky ('k') | sky/tests/harness/reftest-mismatch.sky » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tests/harness/reftest-expected.sky
diff --git a/sky/tests/harness/reftest-expected.sky b/sky/tests/harness/reftest-expected.sky
index 7a7e586c04f026d4e6dcee8bd7fcea0507c1f183..14ac7626afb9c97c9c616cbabd8677c835aaabc5 100644
--- a/sky/tests/harness/reftest-expected.sky
+++ b/sky/tests/harness/reftest-expected.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>
« no previous file with comments | « sky/tests/harness/reftest.sky ('k') | sky/tests/harness/reftest-mismatch.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698