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

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

Issue 797063002: Make reftests work for sky. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: address review comments Created 6 years 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.sky
diff --git a/sky/tests/harness/reftest.sky b/sky/tests/harness/reftest.sky
new file mode 100644
index 0000000000000000000000000000000000000000..ba0e49d15fb227db890f9781d8b7d0882e426b43
--- /dev/null
+++ b/sky/tests/harness/reftest.sky
@@ -0,0 +1,13 @@
+<foo>
+This is a reftest.
+<script>
+window.addEventListener('load', function() {
+ // TODO(ojan): Why is this setTimeout needed to get
+ // a non-white page. It seems we don't do our first
+ // paint before the load event?
+ setTimeout(function() {
+ internals.notifyTestComplete("");
+ });
+})
+</script>
+</foo>

Powered by Google App Engine
This is Rietveld 408576698