109638: Windows framework_tests_misc is 2.06% flaky (#109640)

This commit is contained in:
pdblasi-google
2022-08-17 12:47:07 -07:00
committed by GitHub
parent 01f3fca3f5
commit c8c3f39c93
2 changed files with 5 additions and 7 deletions

View File

@@ -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;
});
}