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:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user