Adjust the tests to handle a higher-DPI test harness. (#10056)

Requires https://github.com/flutter/engine/pull/3688
This commit is contained in:
Ian Hickson
2017-05-15 16:47:14 -07:00
committed by GitHub
parent abeb164fe2
commit ce2c834f70
4 changed files with 21 additions and 21 deletions

View File

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