Unverified Commit 498f1fcc authored by Alexandre Ardhuin's avatar Alexandre Ardhuin Committed by GitHub

fix missing function call (#16382)

parent 4576f566
...@@ -255,26 +255,26 @@ void main() { ...@@ -255,26 +255,26 @@ void main() {
), ),
); );
expect(find.byType(CustomPaint), paints expect(find.byType(CustomPaint), paints
..save ..save()
..translate(x: 800.0, y: 0.0) ..translate(x: 800.0, y: 0.0)
..rotate(angle: math.pi / 4.0) ..rotate(angle: math.pi / 4.0)
..rect(rect: new Rect.fromLTRB(-40.0, 28.0, 40.0, 40.0), color: const Color(0x7f000000), hasMaskFilter: true) ..rect(rect: new Rect.fromLTRB(-40.0, 28.0, 40.0, 40.0), color: const Color(0x7f000000), hasMaskFilter: true)
..rect(rect: new Rect.fromLTRB(-40.0, 28.0, 40.0, 40.0), color: const Color(0xa0b71c1c), hasMaskFilter: false) ..rect(rect: new Rect.fromLTRB(-40.0, 28.0, 40.0, 40.0), color: const Color(0xa0b71c1c), hasMaskFilter: false)
..paragraph(offset: const Offset(-40.0, 29.0)) ..paragraph(offset: const Offset(-40.0, 29.0))
..restore ..restore()
); );
}); });
testWidgets('Banner widget in MaterialApp', (WidgetTester tester) async { testWidgets('Banner widget in MaterialApp', (WidgetTester tester) async {
await tester.pumpWidget(new MaterialApp(home: const Placeholder())); await tester.pumpWidget(new MaterialApp(home: const Placeholder()));
expect(find.byType(CheckedModeBanner), paints expect(find.byType(CheckedModeBanner), paints
..save ..save()
..translate(x: 800.0, y: 0.0) ..translate(x: 800.0, y: 0.0)
..rotate(angle: math.pi / 4.0) ..rotate(angle: math.pi / 4.0)
..rect(rect: new Rect.fromLTRB(-40.0, 28.0, 40.0, 40.0), color: const Color(0x7f000000), hasMaskFilter: true) ..rect(rect: new Rect.fromLTRB(-40.0, 28.0, 40.0, 40.0), color: const Color(0x7f000000), hasMaskFilter: true)
..rect(rect: new Rect.fromLTRB(-40.0, 28.0, 40.0, 40.0), color: const Color(0xa0b71c1c), hasMaskFilter: false) ..rect(rect: new Rect.fromLTRB(-40.0, 28.0, 40.0, 40.0), color: const Color(0xa0b71c1c), hasMaskFilter: false)
..paragraph(offset: const Offset(-40.0, 29.0)) ..paragraph(offset: const Offset(-40.0, 29.0))
..restore ..restore()
); );
}); });
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment