Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
2bc4c7a8
Unverified
Commit
2bc4c7a8
authored
Aug 30, 2023
by
Polina Cherkasova
Committed by
GitHub
Aug 30, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mark routing test as leaking. (#133697)
parent
784629c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
app_test.dart
packages/flutter/test/material/app_test.dart
+9
-3
No files found.
packages/flutter/test/material/app_test.dart
View file @
2bc4c7a8
...
...
@@ -57,7 +57,7 @@ void main() {
expect
(
focusNode
.
hasFocus
,
isTrue
);
});
testWidgets
(
'Can place app inside FocusScope'
,
(
WidgetTester
tester
)
async
{
testWidgets
WithLeakTracking
(
'Can place app inside FocusScope'
,
(
WidgetTester
tester
)
async
{
final
FocusScopeNode
focusScopeNode
=
FocusScopeNode
();
await
tester
.
pumpWidget
(
FocusScope
(
...
...
@@ -69,6 +69,7 @@ void main() {
));
expect
(
find
.
text
(
'Home'
),
findsOneWidget
);
focusScopeNode
.
dispose
();
});
testWidgetsWithLeakTracking
(
'Can show grid without losing sync'
,
(
WidgetTester
tester
)
async
{
...
...
@@ -310,7 +311,7 @@ void main() {
expect
(
find
.
text
(
'route "/b"'
,
skipOffstage:
false
),
findsNothing
);
});
testWidgets
(
'Initial route with missing step'
,
(
WidgetTester
tester
)
async
{
testWidgets
WithLeakTracking
(
'Initial route with missing step'
,
(
WidgetTester
tester
)
async
{
final
Map
<
String
,
WidgetBuilder
>
routes
=
<
String
,
WidgetBuilder
>{
'/'
:
(
BuildContext
context
)
=>
const
Text
(
'route "/"'
),
'/a'
:
(
BuildContext
context
)
=>
const
Text
(
'route "/a"'
),
...
...
@@ -333,7 +334,12 @@ void main() {
expect
(
find
.
text
(
'route "/a/b"'
),
findsNothing
);
expect
(
find
.
text
(
'route "/b"'
),
findsNothing
);
}
});
},
// TODO(polina-c): remove after fixing
// https://github.com/flutter/flutter/issues/133695
leakTrackingTestConfig:
const
LeakTrackingTestConfig
(
notDisposedAllowList:
<
String
,
int
?>
{
'ValueNotifier<String?>'
:
3
},
));
testWidgetsWithLeakTracking
(
'Make sure initialRoute is only used the first time'
,
(
WidgetTester
tester
)
async
{
final
Map
<
String
,
WidgetBuilder
>
routes
=
<
String
,
WidgetBuilder
>{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment