Roll engine to fed2ea458ed49088d33eddabc546ba56d600c717 (includes dart roll) again (#19277)

* Revert "Revert "Roll engine to fed2ea458ed49088d33eddabc546ba56d600c717 (includes dart roll) (#19044)" (#19276)"

This reverts commit cf932490b7 as it also
includes fix for type error that broke tests.

* Add type cast for dart2 type checks.

* Move up to latest goldens

* Make inDirectory() type-parameterized.

* Add typecasting to transitions_perf_test.dart and microbenchmarks.

* Add boolean flag initialization in save_catalog_screenshots.dart

* Add type conversion to gallery transition test
This commit is contained in:
Alexander Aprelev
2018-07-11 19:26:33 -07:00
committed by GitHub
parent 379a2d5654
commit 700cb767c9
42 changed files with 154 additions and 141 deletions

View File

@@ -111,7 +111,7 @@ Future<VMIsolateRef> _connectToRunnerIsolate(int vmServicePort) async {
throw 'not ready yet';
return isolate;
} catch (error) {
const Duration connectionTimeout = const Duration(seconds: 2);
const Duration connectionTimeout = const Duration(seconds: 10);
if (new DateTime.now().difference(started) > connectionTimeout) {
throw new TimeoutException(
'Failed to connect to the task runner process',

View File

@@ -362,7 +362,7 @@ Future<String> findJavaHome() async {
return path.dirname(path.dirname(javaBinary));
}
Future<dynamic> inDirectory(dynamic directory, Future<dynamic> action()) async {
Future<T> inDirectory<T>(dynamic directory, Future<T> action()) async {
final String previousCwd = cwd;
try {
cd(directory);