Skip to content

Commit 05e92c8

Browse files
author
Jonah Williams
authored
Compatibility pass on flutter/physics tests for JavaScript compilation. (6) (flutter#33359)
1 parent 30fb980 commit 05e92c8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

dev/bots/test.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ Future<void> _runTests() async {
343343
Future<void> _runWebTests() async {
344344
await _runFlutterWebTest(path.join(flutterRoot, 'packages', 'flutter'), expectFailure: false, tests: <String>[
345345
'test/foundation/',
346+
'test/physics/',
346347
'test/rendering/',
347348
'test/services/',
348349
'test/painting/',

packages/flutter/test/physics/newton_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ void main() {
2121

2222
expect(friction.dx(1.0), 120.0);
2323
expect(friction.dx(2.0), 36.0);
24-
expect(friction.dx(3.0), 10.8);
24+
expect(friction.dx(3.0), closeTo(10.8, 0.00001));
2525
expect(friction.dx(4.0) < 3.5, true);
2626

2727
expect(friction.isDone(5.0), true);

0 commit comments

Comments
 (0)