Index: sky/tests/resources/run-after-display.sky |
diff --git a/sky/tests/resources/run-after-display.sky b/sky/tests/resources/run-after-display.sky |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4411b6cd59630bc1908fe0fe64131d946eaa9541 |
--- /dev/null |
+++ b/sky/tests/resources/run-after-display.sky |
@@ -0,0 +1,11 @@ |
+<script> |
+module.exports = function(callback) { |
+ window.requestAnimationFrame(function() { |
+ // At this point, only the animate has happened, but no compositing |
+ // or layout. Use a timeout for the callback so that notifyDone |
+ // can be called inside of it. |
+ // FIXME: we need a better way of waiting for chromium events to happen |
+ window.setTimeout(callback); |
+ }); |
+}; |
+</script> |