Unverified Commit f52fe4f7 authored by droidbg's avatar droidbg Committed by GitHub

[leak-tracking] Add leak tracking in test/painting #2 (#136169)

parent 6dce1425
......@@ -9,6 +9,7 @@ library;
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:leak_tracker_flutter_testing/leak_tracker_flutter_testing.dart';
void main() {
test('ContinuousRectangleBorder defaults', () {
......@@ -108,7 +109,7 @@ void main() {
expect(border.getInnerPath(rect,textDirection: TextDirection.rtl), looksLikeRectRtl);
});
testWidgets('Golden test even radii', (WidgetTester tester) async {
testWidgetsWithLeakTracking('Golden test even radii', (WidgetTester tester) async {
await tester.pumpWidget(RepaintBoundary(
child: Material(
color: Colors.blueAccent[400],
......@@ -126,7 +127,7 @@ void main() {
);
});
testWidgets('Golden test varying radii', (WidgetTester tester) async {
testWidgetsWithLeakTracking('Golden test varying radii', (WidgetTester tester) async {
await tester.pumpWidget(RepaintBoundary(
child: Material(
color: Colors.green[100],
......@@ -149,7 +150,7 @@ void main() {
);
});
testWidgets('Golden test topLeft radii', (WidgetTester tester) async {
testWidgetsWithLeakTracking('Golden test topLeft radii', (WidgetTester tester) async {
await tester.pumpWidget(RepaintBoundary(
child: Material(
color: Colors.green[200],
......@@ -169,7 +170,7 @@ void main() {
);
});
testWidgets('Golden test topRight radii', (WidgetTester tester) async {
testWidgetsWithLeakTracking('Golden test topRight radii', (WidgetTester tester) async {
await tester.pumpWidget(RepaintBoundary(
child: Material(
color: Colors.green[300],
......@@ -189,7 +190,7 @@ void main() {
);
});
testWidgets('Golden test bottomLeft radii', (WidgetTester tester) async {
testWidgetsWithLeakTracking('Golden test bottomLeft radii', (WidgetTester tester) async {
await tester.pumpWidget(RepaintBoundary(
child: Material(
color: Colors.green[400],
......@@ -209,7 +210,7 @@ void main() {
);
});
testWidgets('Golden test bottomRight radii', (WidgetTester tester) async {
testWidgetsWithLeakTracking('Golden test bottomRight radii', (WidgetTester tester) async {
await tester.pumpWidget(RepaintBoundary(
child: Material(
color: Colors.green[500],
......@@ -229,7 +230,7 @@ void main() {
);
});
testWidgets('Golden test large radii', (WidgetTester tester) async {
testWidgetsWithLeakTracking('Golden test large radii', (WidgetTester tester) async {
await tester.pumpWidget(RepaintBoundary(
child: Material(
color: Colors.redAccent[400],
......
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