Skip to content

Commit

Permalink
Cover some test/widgets tests with leak tracking (#133803)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksokolovskyi authored Sep 7, 2023
1 parent 0d198c7 commit aca91df
Show file tree
Hide file tree
Showing 60 changed files with 733 additions and 566 deletions.
9 changes: 5 additions & 4 deletions packages/flutter/test/widgets/absorb_pointer_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@

import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:leak_tracker_flutter_testing/leak_tracker_flutter_testing.dart';

import 'semantics_tester.dart';

void main() {
testWidgets('AbsorbPointers do not block siblings', (WidgetTester tester) async {
testWidgetsWithLeakTracking('AbsorbPointers do not block siblings', (WidgetTester tester) async {
bool tapped = false;
await tester.pumpWidget(
Column(
Expand All @@ -29,7 +30,7 @@ void main() {
});

group('AbsorbPointer semantics', () {
testWidgets('does not change semantics when not absorbing', (WidgetTester tester) async {
testWidgetsWithLeakTracking('does not change semantics when not absorbing', (WidgetTester tester) async {
final UniqueKey key = UniqueKey();
await tester.pumpWidget(
MaterialApp(
Expand All @@ -56,7 +57,7 @@ void main() {
);
});

testWidgets('drops semantics when its ignoreSemantics is true', (WidgetTester tester) async {
testWidgetsWithLeakTracking('drops semantics when its ignoreSemantics is true', (WidgetTester tester) async {
final SemanticsTester semantics = SemanticsTester(tester);
final UniqueKey key = UniqueKey();
await tester.pumpWidget(
Expand All @@ -75,7 +76,7 @@ void main() {
semantics.dispose();
});

testWidgets('ignores user interactions', (WidgetTester tester) async {
testWidgetsWithLeakTracking('ignores user interactions', (WidgetTester tester) async {
final UniqueKey key = UniqueKey();
await tester.pumpWidget(
MaterialApp(
Expand Down
Loading

0 comments on commit aca91df

Please sign in to comment.