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
4a174058
Unverified
Commit
4a174058
authored
Jan 28, 2021
by
Michael Goderbauer
Committed by
GitHub
Jan 28, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
++ (#74862)
parent
68bd9c01
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
test_async_utils_guarded_test.dart
...ted_tests/flutter_test/test_async_utils_guarded_test.dart
+1
-1
test_async_utils_unguarded_test.dart
...d_tests/flutter_test/test_async_utils_unguarded_test.dart
+1
-1
ticker_test.dart
dev/automated_tests/flutter_test/ticker_test.dart
+2
-2
pubspec.yaml
dev/automated_tests/pubspec.yaml
+1
-1
No files found.
dev/automated_tests/flutter_test/test_async_utils_guarded_test.dart
View file @
4a174058
...
@@ -9,7 +9,7 @@ import 'package:flutter_test/flutter_test.dart';
...
@@ -9,7 +9,7 @@ import 'package:flutter_test/flutter_test.dart';
class
TestTestBinding
extends
AutomatedTestWidgetsFlutterBinding
{
class
TestTestBinding
extends
AutomatedTestWidgetsFlutterBinding
{
@override
@override
DebugPrintCallback
get
debugPrintOverride
=>
testPrint
;
DebugPrintCallback
get
debugPrintOverride
=>
testPrint
;
static
void
testPrint
(
String
message
,
{
int
wrapWidth
})
{
print
(
message
);
}
static
void
testPrint
(
String
?
message
,
{
int
?
wrapWidth
})
{
print
(
message
);
}
}
}
Future
<
void
>
guardedHelper
(
WidgetTester
tester
)
{
Future
<
void
>
guardedHelper
(
WidgetTester
tester
)
{
...
...
dev/automated_tests/flutter_test/test_async_utils_unguarded_test.dart
View file @
4a174058
...
@@ -8,7 +8,7 @@ import 'package:flutter_test/flutter_test.dart';
...
@@ -8,7 +8,7 @@ import 'package:flutter_test/flutter_test.dart';
class
TestTestBinding
extends
AutomatedTestWidgetsFlutterBinding
{
class
TestTestBinding
extends
AutomatedTestWidgetsFlutterBinding
{
@override
@override
DebugPrintCallback
get
debugPrintOverride
=>
testPrint
;
DebugPrintCallback
get
debugPrintOverride
=>
testPrint
;
static
void
testPrint
(
String
message
,
{
int
wrapWidth
})
{
print
(
message
);
}
static
void
testPrint
(
String
?
message
,
{
int
?
wrapWidth
})
{
print
(
message
);
}
}
}
Future
<
void
>
helperFunction
(
WidgetTester
tester
)
async
{
Future
<
void
>
helperFunction
(
WidgetTester
tester
)
async
{
...
...
dev/automated_tests/flutter_test/ticker_test.dart
View file @
4a174058
...
@@ -10,7 +10,7 @@ void main() {
...
@@ -10,7 +10,7 @@ void main() {
testWidgets
(
'Does flutter_test catch leaking tickers?'
,
(
WidgetTester
tester
)
async
{
testWidgets
(
'Does flutter_test catch leaking tickers?'
,
(
WidgetTester
tester
)
async
{
Ticker
((
Duration
duration
)
{
}).
start
();
Ticker
((
Duration
duration
)
{
}).
start
();
final
ByteData
message
=
const
StringCodec
().
encodeMessage
(
'AppLifecycleState.paused'
);
final
ByteData
?
message
=
const
StringCodec
().
encodeMessage
(
'AppLifecycleState.paused'
);
await
ServicesBinding
.
instance
.
defaultBinaryMessenger
.
handlePlatformMessage
(
'flutter/lifecycle'
,
message
,
(
_
)
{});
await
ServicesBinding
.
instance
!
.
defaultBinaryMessenger
.
handlePlatformMessage
(
'flutter/lifecycle'
,
message
,
(
_
)
{});
});
});
}
}
dev/automated_tests/pubspec.yaml
View file @
4a174058
name
:
flutter_automated_tests
name
:
flutter_automated_tests
environment
:
environment
:
sdk
:
"
>=2.
0.0-dev.68.
0
<3.0.0"
sdk
:
"
>=2.
12.0-
0
<3.0.0"
dependencies
:
dependencies
:
flutter
:
flutter
:
...
...
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