blob: dd2398fc597fb623c84c1b74a6494a3a71395087 [file] [log] [blame]
library run_after_display;
import "dart:html";
import "../testcommon.dart";
runAfterDisplay(callback) {
window.requestAnimationFrame((_) {
// 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.
setTimeout(callback, 0);
});
}