Update rendering smoke tests to assert a frame has been scheduled (#82963)

This commit is contained in:
Dan Field
2021-05-20 13:34:05 -07:00
committed by GitHub
parent 78a96b09d6
commit 669a8150e0
10 changed files with 17 additions and 4 deletions

View File

@@ -21,5 +21,5 @@ RenderBox buildSectorExample() {
}
void main() {
RenderingFlutterBinding(root: buildSectorExample());
RenderingFlutterBinding(root: buildSectorExample()).scheduleFrame();
}

View File

@@ -86,5 +86,5 @@ void main() {
child: RenderPadding(child: table, padding: const EdgeInsets.symmetric(vertical: 50.0)),
);
RenderingFlutterBinding(root: root);
RenderingFlutterBinding(root: root).scheduleFrame();
}

View File

@@ -25,5 +25,5 @@ void main() {
textDirection: TextDirection.ltr,
),
),
);
).scheduleFrame();
}

View File

@@ -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();
}