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
6757c7dd
Unverified
Commit
6757c7dd
authored
Feb 17, 2021
by
Jason Simmons
Committed by
GitHub
Feb 17, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use a null default skip value in testWidgets so it can inherit the group's skip flag (#76174)
parent
93e7d34d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
widget_tester.dart
packages/flutter_test/lib/src/widget_tester.dart
+1
-1
widget_tester_test.dart
packages/flutter_test/test/widget_tester_test.dart
+6
-0
No files found.
packages/flutter_test/lib/src/widget_tester.dart
View file @
6757c7dd
...
...
@@ -108,7 +108,7 @@ typedef WidgetTesterCallback = Future<void> Function(WidgetTester widgetTester);
void
testWidgets
(
String
description
,
WidgetTesterCallback
callback
,
{
bool
skip
=
false
,
bool
?
skip
,
test_package
.
Timeout
?
timeout
,
Duration
?
initialTimeout
,
bool
semanticsEnabled
=
true
,
...
...
packages/flutter_test/test/widget_tester_test.dart
View file @
6757c7dd
...
...
@@ -52,6 +52,12 @@ void main() {
});
});
group
(
'respects the group skip flag'
,
()
{
testWidgets
(
'should be skipped'
,
(
WidgetTester
tester
)
async
{
expect
(
false
,
true
);
});
},
skip:
true
);
group
(
'findsOneWidget'
,
()
{
testWidgets
(
'finds exactly one widget'
,
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
const
Text
(
'foo'
,
textDirection:
TextDirection
.
ltr
));
...
...
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