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
e5ca020d
Unverified
Commit
e5ca020d
authored
Aug 03, 2020
by
Michael Goderbauer
Committed by
GitHub
Aug 03, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make dartdoc warnings fatal for flutter_test (#62614)
parent
2fa5e800
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
15 deletions
+17
-15
dartdoc.dart
dev/tools/dartdoc.dart
+1
-3
binding.dart
packages/flutter_test/lib/src/binding.dart
+16
-12
No files found.
dev/tools/dartdoc.dart
View file @
e5ca020d
...
...
@@ -132,9 +132,7 @@ Future<void> main(List<String> arguments) async {
kDummyPackageName
,
kPlatformIntegrationPackageName
,
...
findPackageNames
(),
]..
remove
(
'flutter_test'
);
// TODO(goderbauer): Enable flutter_test when engine is rolled to include
// https://github.com/flutter/engine/pull/20140.
];
// Generate the documentation.
// We don't need to exclude flutter_tools in this list because it's not in the
...
...
packages/flutter_test/lib/src/binding.dart
View file @
e5ca020d
...
...
@@ -1245,11 +1245,15 @@ class AutomatedTestWidgetsFlutterBinding extends TestWidgetsFlutterBinding {
/// [LiveTestWidgetsFlutterBinding.framePolicy] property.
///
/// {@template flutter.flutter_test.frame_policy}
/// The default is [fadePointers]. Setting this to anything other than
/// [onlyPumps] results in pumping extra frames, which might involve calling
/// builders more, or calling paint callbacks more, etc, and might interfere
/// with the test. If you know that your test won't be affected by this, you can
/// set the policy to [fullyLive] or [benchmarkLive] in that particular file.
/// The default is [LiveTestWidgetsFlutterBindingFramePolicy.fadePointers].
/// Setting this to anything other than
/// [LiveTestWidgetsFlutterBindingFramePolicy.onlyPumps] results in pumping
/// extra frames, which might involve calling builders more, or calling paint
/// callbacks more, etc, and might interfere with the test. If you know that
/// your test won't be affected by this, you can set the policy to
/// [LiveTestWidgetsFlutterBindingFramePolicy.fullyLive] or
/// [LiveTestWidgetsFlutterBindingFramePolicy.benchmarkLive] in that particular
/// file.
///
/// To set a value while still allowing the test file to work as a normal test,
/// add the following code to your test file at the top of your
...
...
@@ -1284,7 +1288,7 @@ enum LiveTestWidgetsFlutterBindingFramePolicy {
/// explicitly pumped.
///
/// The major difference between [fullyLive] and [benchmarkLive] is the latter
/// ignores frame requests by [pump].
/// ignores frame requests by [
WidgetTester.
pump].
///
/// This can help with orienting the developer when looking at
/// heavily-animated situations, and will almost certainly result in
...
...
@@ -1302,7 +1306,7 @@ enum LiveTestWidgetsFlutterBindingFramePolicy {
///
/// This allows all frame requests from the engine to be serviced, and allows
/// all frame requests that are artificially triggered to be serviced, but
/// ignores [scheduleFrame] requests from the framework.
/// ignores [
SchedulerBinding.
scheduleFrame] requests from the framework.
/// Therefore animation won't run for this mode because the framework
/// generates an animation by requesting new frames.
///
...
...
@@ -1319,11 +1323,11 @@ enum LiveTestWidgetsFlutterBindingFramePolicy {
/// This is used for running the test on a device, where scheduling of new
/// frames respects what the engine and the device needed.
///
/// Compared to [fullyLive] this policy ignores the frame requests from
[pump]
///
so that frame scheduling mimics that of the real environment, and avoids
///
waiting for an artificially [pump]ed frame. (For example, when driving the
///
test in methods like [WidgetTester.handlePointerEventRecord] or
/// [WidgetTester.fling].)
/// Compared to [fullyLive] this policy ignores the frame requests from
///
[WidgetTester.pump] so that frame scheduling mimics that of the real
///
environment, and avoids waiting for an artificially pumped frame. (For
///
example, when driving the test in methods like
/// [WidgetTester.
handlePointerEventRecord] or [WidgetTester.
fling].)
///
/// This policy differs from [benchmark] in that it can be used for capturing
/// animation frames requested by the framework.
...
...
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