Compatibility pass on flutter/scheduler tests for JavaScript compilation. (2) (#33350)
This commit is contained in:
@@ -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/scheduler/',
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ class TestBinding extends LiveTestWidgetsFlutterBinding {
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> main() async {
|
||||
void main() {
|
||||
final TestBinding binding = TestBinding();
|
||||
|
||||
test('test pumpBenchmark() only runs one frame', () async {
|
||||
@@ -67,5 +67,5 @@ Future<void> main() async {
|
||||
// We are not interested in the performance of the "benchmark", we are just
|
||||
// testing the behavior. So it's OK that asserts are enabled.
|
||||
mayRunWithAsserts: true);
|
||||
});
|
||||
}, skip: isBrowser);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// Copyright 2015 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:flutter/foundation.dart';
|
||||
|
||||
Reference in New Issue
Block a user