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
c19e553d
Commit
c19e553d
authored
Sep 24, 2019
by
Mehmet Fidanboylu
Committed by
Michael Goderbauer
Sep 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow test beds to override defaultTestTimeout (#40806)
parent
ad745170
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
binding.dart
packages/flutter_test/lib/src/binding.dart
+4
-1
bindings_test.dart
packages/flutter_test/test/bindings_test.dart
+9
-1
No files found.
packages/flutter_test/lib/src/binding.dart
View file @
c19e553d
...
@@ -839,8 +839,11 @@ class AutomatedTestWidgetsFlutterBinding extends TestWidgetsFlutterBinding {
...
@@ -839,8 +839,11 @@ class AutomatedTestWidgetsFlutterBinding extends TestWidgetsFlutterBinding {
@override
@override
bool
get
checkIntrinsicSizes
=>
true
;
bool
get
checkIntrinsicSizes
=>
true
;
/// The value of [defaultTestTimeout] can be set to `None` to enable debugging flutter tests where
/// we would not want to timeout the test. This is expected to be used by test tooling which
/// can detect debug mode.
@override
@override
test_package
.
Timeout
get
defaultTestTimeout
=>
const
test_package
.
Timeout
(
Duration
(
minutes:
10
));
test_package
.
Timeout
defaultTestTimeout
=
const
test_package
.
Timeout
(
Duration
(
minutes:
10
));
@override
@override
bool
get
inTest
=>
_currentFakeAsync
!=
null
;
bool
get
inTest
=>
_currentFakeAsync
!=
null
;
...
...
packages/flutter_test/test/bindings_test.dart
View file @
c19e553d
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/widgets.dart'
;
import
'package:flutter/widgets.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:test_api/test_api.dart'
as
test_package
;
void
main
(
)
{
void
main
(
)
{
group
(
TestViewConfiguration
,
()
{
group
(
TestViewConfiguration
,
()
{
...
@@ -14,4 +14,12 @@ void main() {
...
@@ -14,4 +14,12 @@ void main() {
TestViewConfiguration
(
size:
const
Size
(
1280.0
,
800.0
));
TestViewConfiguration
(
size:
const
Size
(
1280.0
,
800.0
));
});
});
});
});
group
(
AutomatedTestWidgetsFlutterBinding
,
()
{
test
(
'allows setting defaultTestTimeout to 5 minutes'
,
()
{
final
AutomatedTestWidgetsFlutterBinding
binding
=
AutomatedTestWidgetsFlutterBinding
();
binding
.
defaultTestTimeout
=
const
test_package
.
Timeout
(
Duration
(
minutes:
5
));
expect
(
binding
.
defaultTestTimeout
.
duration
,
const
Duration
(
minutes:
5
));
});
});
}
}
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