Adjust the tests to handle a higher-DPI test harness. (#10056)
Requires https://github.com/flutter/engine/pull/3688
This commit is contained in:
@@ -61,8 +61,8 @@ void main() {
|
||||
expect(find.text('Account Balance'), findsNothing);
|
||||
|
||||
// drag the drawer out
|
||||
final Offset left = new Offset(0.0, ui.window.physicalSize.height / 2.0);
|
||||
final Offset right = new Offset(ui.window.physicalSize.width, left.dy);
|
||||
final Offset left = new Offset(0.0, (ui.window.physicalSize / ui.window.devicePixelRatio).height / 2.0);
|
||||
final Offset right = new Offset((ui.window.physicalSize / ui.window.devicePixelRatio).width, left.dy);
|
||||
final TestGesture gesture = await tester.startGesture(left);
|
||||
await tester.pump();
|
||||
await gesture.moveTo(right);
|
||||
|
||||
Reference in New Issue
Block a user