Update rendering smoke tests to assert a frame has been scheduled (#82963)
This commit is contained in:
@@ -21,5 +21,5 @@ RenderBox buildSectorExample() {
|
||||
}
|
||||
|
||||
void main() {
|
||||
RenderingFlutterBinding(root: buildSectorExample());
|
||||
RenderingFlutterBinding(root: buildSectorExample()).scheduleFrame();
|
||||
}
|
||||
|
||||
@@ -86,5 +86,5 @@ void main() {
|
||||
child: RenderPadding(child: table, padding: const EdgeInsets.symmetric(vertical: 50.0)),
|
||||
);
|
||||
|
||||
RenderingFlutterBinding(root: root);
|
||||
RenderingFlutterBinding(root: root).scheduleFrame();
|
||||
}
|
||||
|
||||
@@ -25,5 +25,5 @@ void main() {
|
||||
textDirection: TextDirection.ltr,
|
||||
),
|
||||
),
|
||||
);
|
||||
).scheduleFrame();
|
||||
}
|
||||
|
||||
@@ -132,5 +132,5 @@ void main() {
|
||||
..left = 20.0;
|
||||
|
||||
// Finally, we attach the render tree we've built to the screen.
|
||||
RenderingFlutterBinding(root: stack);
|
||||
RenderingFlutterBinding(root: stack).scheduleFrame();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user