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
6d8aa4af
Unverified
Commit
6d8aa4af
authored
Jan 31, 2024
by
Polina Cherkasova
Committed by
GitHub
Jan 31, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mark test that leaks image. (#142539)
parent
50dbcc48
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
1 deletion
+8
-1
text_field_test.dart
packages/flutter/test/cupertino/text_field_test.dart
+1
-0
dropdown_menu_test.dart
packages/flutter/test/material/dropdown_menu_test.dart
+1
-0
menu_anchor_test.dart
packages/flutter/test/material/menu_anchor_test.dart
+1
-0
text_field_test.dart
packages/flutter/test/material/text_field_test.dart
+1
-0
scroll_aware_image_provider_test.dart
...lutter/test/widgets/scroll_aware_image_provider_test.dart
+4
-1
No files found.
packages/flutter/test/cupertino/text_field_test.dart
View file @
6d8aa4af
...
@@ -626,6 +626,7 @@ void main() {
...
@@ -626,6 +626,7 @@ void main() {
const
Color
expectedSelectionHandleColor
=
Color
.
fromARGB
(
255
,
10
,
200
,
255
);
const
Color
expectedSelectionHandleColor
=
Color
.
fromARGB
(
255
,
10
,
200
,
255
);
final
TextEditingController
controller
=
TextEditingController
(
text:
'Some text.'
);
final
TextEditingController
controller
=
TextEditingController
(
text:
'Some text.'
);
addTearDown
(
controller
.
dispose
);
await
tester
.
pumpWidget
(
await
tester
.
pumpWidget
(
CupertinoApp
(
CupertinoApp
(
...
...
packages/flutter/test/material/dropdown_menu_test.dart
View file @
6d8aa4af
...
@@ -1935,6 +1935,7 @@ void main() {
...
@@ -1935,6 +1935,7 @@ void main() {
testWidgets
(
'DropdownMenu.focusNode can focus text input field'
,
(
WidgetTester
tester
)
async
{
testWidgets
(
'DropdownMenu.focusNode can focus text input field'
,
(
WidgetTester
tester
)
async
{
final
FocusNode
focusNode
=
FocusNode
();
final
FocusNode
focusNode
=
FocusNode
();
addTearDown
(
focusNode
.
dispose
);
final
ThemeData
theme
=
ThemeData
();
final
ThemeData
theme
=
ThemeData
();
await
tester
.
pumpWidget
(
MaterialApp
(
await
tester
.
pumpWidget
(
MaterialApp
(
...
...
packages/flutter/test/material/menu_anchor_test.dart
View file @
6d8aa4af
...
@@ -2616,6 +2616,7 @@ void main() {
...
@@ -2616,6 +2616,7 @@ void main() {
child:
const
Text
(
'Set focus to null'
),
child:
const
Text
(
'Set focus to null'
),
onPressed:
()
{
onPressed:
()
{
setState
((){
setState
((){
buttonFocusNode
?.
dispose
();
buttonFocusNode
=
null
;
buttonFocusNode
=
null
;
});
});
},
},
...
...
packages/flutter/test/material/text_field_test.dart
View file @
6d8aa4af
...
@@ -9297,6 +9297,7 @@ void main() {
...
@@ -9297,6 +9297,7 @@ void main() {
const
Color
expectedSelectionHandleColor
=
Color
.
fromARGB
(
255
,
10
,
200
,
255
);
const
Color
expectedSelectionHandleColor
=
Color
.
fromARGB
(
255
,
10
,
200
,
255
);
final
TextEditingController
controller
=
TextEditingController
(
text:
'Some text.'
);
final
TextEditingController
controller
=
TextEditingController
(
text:
'Some text.'
);
addTearDown
(
controller
.
dispose
);
await
tester
.
pumpWidget
(
await
tester
.
pumpWidget
(
MaterialApp
(
MaterialApp
(
...
...
packages/flutter/test/widgets/scroll_aware_image_provider_test.dart
View file @
6d8aa4af
...
@@ -167,7 +167,10 @@ void main() {
...
@@ -167,7 +167,10 @@ void main() {
expect
(
imageCache
.
currentSize
,
1
);
expect
(
imageCache
.
currentSize
,
1
);
});
});
testWidgets
(
'ScrollAwareImageProvider delays if in scrollable that is scrolling fast'
,
(
WidgetTester
tester
)
async
{
testWidgets
(
'ScrollAwareImageProvider delays if in scrollable that is scrolling fast'
,
// TODO(polina-c): make sure images are disposed, https://github.com/flutter/flutter/issues/141388 [leaks-to-clean]
experimentalLeakTesting:
LeakTesting
.
settings
.
withIgnoredAll
(),
(
WidgetTester
tester
)
async
{
final
List
<
GlobalKey
<
TestWidgetState
>>
keys
=
<
GlobalKey
<
TestWidgetState
>>[];
final
List
<
GlobalKey
<
TestWidgetState
>>
keys
=
<
GlobalKey
<
TestWidgetState
>>[];
final
ScrollController
scrollController
=
ScrollController
();
final
ScrollController
scrollController
=
ScrollController
();
addTearDown
(
scrollController
.
dispose
);
addTearDown
(
scrollController
.
dispose
);
...
...
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