109638: Windows framework_tests_misc is 2.06% flaky (#109640)
This commit is contained in:
@@ -1349,9 +1349,6 @@ class LiveWidgetController extends WidgetController {
|
||||
assert(records != null);
|
||||
assert(records.isNotEmpty);
|
||||
return TestAsyncUtils.guard<List<Duration>>(() async {
|
||||
// hitTestHistory is an equivalence of _hitTests in [GestureBinding],
|
||||
// used as state for all pointers which are currently down.
|
||||
final Map<int, HitTestResult> hitTestHistory = <int, HitTestResult>{};
|
||||
final List<Duration> handleTimeStampDiff = <Duration>[];
|
||||
DateTime? startTime;
|
||||
for (final PointerEventRecord record in records) {
|
||||
@@ -1376,9 +1373,7 @@ class LiveWidgetController extends WidgetController {
|
||||
record.events.forEach(binding.handlePointerEvent);
|
||||
}
|
||||
}
|
||||
// This makes sure that a gesture is completed, with no more pointers
|
||||
// active.
|
||||
assert(hitTestHistory.isEmpty);
|
||||
|
||||
return handleTimeStampDiff;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user