Unverified Commit 4a4e9bad authored by Ian Hickson's avatar Ian Hickson Committed by GitHub

Enable a scrolling fling test. (#62825)

parent 3bc3ea51
...@@ -29,10 +29,11 @@ void main() { ...@@ -29,10 +29,11 @@ void main() {
await tester.fling(find.byType(ListView), const Offset(0.0, -kFlingOffset), 1000.0); await tester.fling(find.byType(ListView), const Offset(0.0, -kFlingOffset), 1000.0);
expect(getCurrentOffset(), kFlingOffset); expect(getCurrentOffset(), kFlingOffset);
await tester.pump(); // process the up event
while (tester.binding.transientCallbackCount > 0) { while (tester.binding.transientCallbackCount > 0) {
final double lastOffset = getCurrentOffset(); final double lastOffset = getCurrentOffset();
await tester.pump(const Duration(milliseconds: 20)); await tester.pump(const Duration(milliseconds: 20));
expect(getCurrentOffset(), greaterThan(lastOffset)); expect(getCurrentOffset(), greaterThan(lastOffset));
} }
}, skip: true); // https://github.com/flutter/flutter/issues/5339 });
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment