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
39289b83
Unverified
Commit
39289b83
authored
Jan 30, 2019
by
Konstantin Scheglov
Committed by
GitHub
Jan 30, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update additionalTime in TestWidgetsFlutterBinding.runAsync() to 1000. (#27256)
parent
9a85fee3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
binding.dart
packages/flutter_test/lib/src/binding.dart
+3
-3
widget_tester.dart
packages/flutter_test/lib/src/widget_tester.dart
+1
-1
No files found.
packages/flutter_test/lib/src/binding.dart
View file @
39289b83
...
...
@@ -222,7 +222,7 @@ abstract class TestWidgetsFlutterBinding extends BindingBase
/// current timeout. See [AutomatedTestWidgetsFlutterBinding.addTime] for
/// details. The value is ignored by the [LiveTestWidgetsFlutterBinding].
Future
<
T
>
runAsync
<
T
>(
Future
<
T
>
callback
(),
{
Duration
additionalTime
=
const
Duration
(
milliseconds:
25
0
),
Duration
additionalTime
=
const
Duration
(
milliseconds:
100
0
),
});
/// Artificially calls dispatchLocalesChanged on the Widget binding,
...
...
@@ -720,7 +720,7 @@ class AutomatedTestWidgetsFlutterBinding extends TestWidgetsFlutterBinding {
@override
Future
<
T
>
runAsync
<
T
>(
Future
<
T
>
callback
(),
{
Duration
additionalTime
=
const
Duration
(
milliseconds:
25
0
),
Duration
additionalTime
=
const
Duration
(
milliseconds:
100
0
),
})
{
assert
(
additionalTime
!=
null
);
assert
(()
{
...
...
@@ -1223,7 +1223,7 @@ class LiveTestWidgetsFlutterBinding extends TestWidgetsFlutterBinding {
@override
Future
<
T
>
runAsync
<
T
>(
Future
<
T
>
callback
(),
{
Duration
additionalTime
=
const
Duration
(
milliseconds:
25
0
),
Duration
additionalTime
=
const
Duration
(
milliseconds:
100
0
),
})
async
{
assert
(()
{
if
(!
_runningAsyncTasks
)
...
...
packages/flutter_test/lib/src/widget_tester.dart
View file @
39289b83
...
...
@@ -375,7 +375,7 @@ class WidgetTester extends WidgetController implements HitTestDispatcher, Ticker
/// this method again. Attempts to do otherwise will result in a
/// [TestFailure] error being thrown.
Future
<
T
>
runAsync
<
T
>(
Future
<
T
>
callback
(),
{
Duration
additionalTime
=
const
Duration
(
milliseconds:
25
0
),
Duration
additionalTime
=
const
Duration
(
milliseconds:
100
0
),
})
=>
binding
.
runAsync
<
T
>(
callback
,
additionalTime:
additionalTime
);
/// Whether there are any any transient callbacks scheduled.
...
...
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