Reland: Switch to assemble API for dart2js (#41659)

* Stop using build_runner for dart2js

* fixes to yield when computing hashes and to imports

* add missing await

* Update filecache_test.dart

* Fix paths in filecache test

* use file uri for import

* add test cases and configurable override

* remove test dep

* fix filepaths for windows

* test no longer failing

* fix paths for test cases

* fix typo

* address comments

* make a constant

* make filehash async and use constant

* fix silly logic error
This commit is contained in:
Jonah Williams
2019-10-01 14:03:42 -07:00
committed by GitHub
parent 7fb085ee04
commit b2f38396f4
16 changed files with 668 additions and 331 deletions

View File

@@ -282,10 +282,9 @@ Future<void> _runBuildTests() async {
}
// Web compilation tests.
await _flutterBuildDart2js(path.join('dev', 'integration_tests', 'web'), path.join('lib', 'main.dart'));
// Should fail to compile with dart:io.
// Should not fail to compile with dart:io.
await _flutterBuildDart2js(path.join('dev', 'integration_tests', 'web_compile_tests'),
path.join('lib', 'dart_io_import.dart'),
expectNonZeroExit: true,
);
print('${bold}DONE: All build tests successful.$reset');