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
21c2e47f
Unverified
Commit
21c2e47f
authored
May 09, 2018
by
Todd Volkert
Committed by
GitHub
May 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test of expectAsync.skip (#17415)
parent
50a1d91f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
widget_tester_test.dart
packages/flutter_test/test/widget_tester_test.dart
+12
-0
No files found.
packages/flutter_test/test/widget_tester_test.dart
View file @
21c2e47f
...
@@ -32,6 +32,18 @@ void main() {
...
@@ -32,6 +32,18 @@ void main() {
await
tester
.
pump
();
await
tester
.
pump
();
test_package
.
expect
(
value
,
'123'
);
test_package
.
expect
(
value
,
'123'
);
});
});
testWidgets
(
'respects the skip flag'
,
(
WidgetTester
tester
)
async
{
final
Completer
<
void
>
completer
=
new
Completer
<
void
>();
final
Future
<
void
>
future
=
expectLater
(
null
,
new
FakeMatcher
(
completer
),
skip:
'testing skip'
);
bool
completed
=
false
;
future
.
then
((
void
_
)
{
completed
=
true
;
});
test_package
.
expect
(
completed
,
isFalse
);
await
future
;
test_package
.
expect
(
completed
,
isTrue
);
},
skip:
true
/* Enable once https://github.com/dart-lang/test/pull/831 lands */
);
});
});
group
(
'findsOneWidget'
,
()
{
group
(
'findsOneWidget'
,
()
{
...
...
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