mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Compatibility pass on flutter/physics tests for JavaScript compilation. (6) (#33359)
This commit is contained in:
parent
30fb980204
commit
05e92c828b
@ -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/',
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user