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

Side by Side Diff: sky/tests/resources/run-after-display.sky

Issue 1215063003: Remove Sky tests that we don't intend to port to the new world (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 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 unified diff | Download patch
OLDNEW
(Empty)
1 <script>
2 import "dart:async";
3 import "dart:sky";
4
5 void runAfterDisplay(void callback()) {
6 window.requestAnimationFrame((_) {
7 // At this point, only the animate has happened, but no compositing
8 // or layout. Use a timeout for the callback so that notifyDone
9 // can be called inside of it.
10 // FIXME: we need a better way of waiting for chromium events to happen
11 new Timer(Duration.ZERO, callback);
12 });
13 }
14 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698