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
3c321ac8
Unverified
Commit
3c321ac8
authored
Sep 29, 2020
by
Ming Lyu (CareF)
Committed by
GitHub
Sep 29, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup (#66743)
parent
e605b7c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
5 deletions
+0
-5
widget_tester.dart
packages/flutter_test/lib/src/widget_tester.dart
+0
-5
No files found.
packages/flutter_test/lib/src/widget_tester.dart
View file @
3c321ac8
...
...
@@ -528,8 +528,6 @@ class WidgetTester extends WidgetController implements HitTestDispatcher, Ticker
assert
(
records
!=
null
);
assert
(
records
.
isNotEmpty
);
return
TestAsyncUtils
.
guard
<
List
<
Duration
>>(()
async
{
// hitTestHistory is an equivalence of _hitTests in [GestureBinding]
final
Map
<
int
,
HitTestResult
>
hitTestHistory
=
<
int
,
HitTestResult
>{};
final
List
<
Duration
>
handleTimeStampDiff
=
<
Duration
>[];
DateTime
startTime
;
for
(
final
PointerEventRecord
record
in
records
)
{
...
...
@@ -544,8 +542,6 @@ class WidgetTester extends WidgetController implements HitTestDispatcher, Ticker
binding
.
handlePointerEvent
(
event
,
source
:
TestBindingEventSource
.
test
);
}
}
else
{
// TODO(CareF): reconsider the pumping strategy after
// https://github.com/flutter/flutter/issues/60739 is fixed
await
binding
.
pump
();
await
binding
.
delayed
(
timeDiff
);
handleTimeStampDiff
.
add
(
...
...
@@ -559,7 +555,6 @@ class WidgetTester extends WidgetController implements HitTestDispatcher, Ticker
await
binding
.
pump
();
// This makes sure that a gesture is completed, with no more pointers
// active.
assert
(
hitTestHistory
.
isEmpty
);
return
handleTimeStampDiff
;
});
}
...
...
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