From 05e92c828b58336bb21f314bb36284580291e08e Mon Sep 17 00:00:00 2001 From: Jonah Williams Date: Tue, 11 Jun 2019 09:09:13 -0700 Subject: [PATCH] Compatibility pass on flutter/physics tests for JavaScript compilation. (6) (#33359) --- dev/bots/test.dart | 1 + packages/flutter/test/physics/newton_test.dart | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dev/bots/test.dart b/dev/bots/test.dart index cd5688ad876..bc9a6d571c1 100644 --- a/dev/bots/test.dart +++ b/dev/bots/test.dart @@ -343,6 +343,7 @@ Future _runTests() async { Future _runWebTests() async { await _runFlutterWebTest(path.join(flutterRoot, 'packages', 'flutter'), expectFailure: false, tests: [ 'test/foundation/', + 'test/physics/', 'test/rendering/', 'test/services/', 'test/painting/', diff --git a/packages/flutter/test/physics/newton_test.dart b/packages/flutter/test/physics/newton_test.dart index d8f20f13c0e..e315368feda 100644 --- a/packages/flutter/test/physics/newton_test.dart +++ b/packages/flutter/test/physics/newton_test.dart @@ -21,7 +21,7 @@ void main() { expect(friction.dx(1.0), 120.0); expect(friction.dx(2.0), 36.0); - expect(friction.dx(3.0), 10.8); + expect(friction.dx(3.0), closeTo(10.8, 0.00001)); expect(friction.dx(4.0) < 3.5, true); expect(friction.isDone(5.0), true);