Compatibility pass on flutter/physics tests for JavaScript compilation. (6) (#33359)

This commit is contained in:
Jonah Williams 2019-06-11 09:09:13 -07:00 committed by GitHub
parent 30fb980204
commit 05e92c828b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -343,6 +343,7 @@ Future<void> _runTests() async {
Future<void> _runWebTests() async {
await _runFlutterWebTest(path.join(flutterRoot, 'packages', 'flutter'), expectFailure: false, tests: <String>[
'test/foundation/',
'test/physics/',
'test/rendering/',
'test/services/',
'test/painting/',

View File

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