Unverified Commit 980a574d authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

Compatibility pass on flutter/scheduler tests for JavaScript compilation. (2) (#33350)

parent 392e825b
...@@ -343,6 +343,7 @@ Future<void> _runTests() async { ...@@ -343,6 +343,7 @@ Future<void> _runTests() async {
Future<void> _runWebTests() async { Future<void> _runWebTests() async {
await _runFlutterWebTest(path.join(flutterRoot, 'packages', 'flutter'), expectFailure: false, tests: <String>[ await _runFlutterWebTest(path.join(flutterRoot, 'packages', 'flutter'), expectFailure: false, tests: <String>[
'test/foundation/', 'test/foundation/',
'test/scheduler/',
]); ]);
} }
......
...@@ -34,7 +34,7 @@ class TestBinding extends LiveTestWidgetsFlutterBinding { ...@@ -34,7 +34,7 @@ class TestBinding extends LiveTestWidgetsFlutterBinding {
} }
} }
Future<void> main() async { void main() {
final TestBinding binding = TestBinding(); final TestBinding binding = TestBinding();
test('test pumpBenchmark() only runs one frame', () async { test('test pumpBenchmark() only runs one frame', () async {
...@@ -67,5 +67,5 @@ Future<void> main() async { ...@@ -67,5 +67,5 @@ Future<void> main() async {
// We are not interested in the performance of the "benchmark", we are just // We are not interested in the performance of the "benchmark", we are just
// testing the behavior. So it's OK that asserts are enabled. // testing the behavior. So it's OK that asserts are enabled.
mayRunWithAsserts: true); mayRunWithAsserts: true);
}); }, skip: isBrowser);
} }
// Copyright 2015 The Chromium Authors. All rights reserved. // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
import 'dart:async'; import 'dart:async';
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment