Reland - Wire up hot restart and incremental rebuilds for web (#33533)

This commit is contained in:
Jonah Williams
2019-05-29 22:46:28 -07:00
committed by GitHub
parent 381fec583c
commit da600bacfe
38 changed files with 804 additions and 117 deletions

View File

@@ -30,7 +30,7 @@ void main() {
});
test('invokes dart2js with correct arguments', () => testBed.run(() async {
await webCompiler.compile(target: 'lib/main.dart');
await webCompiler.compileDart2js(target: 'lib/main.dart');
verify(mockProcessManager.start(<String>[
'bin/cache/dart-sdk/bin/dart',

View File

@@ -21,12 +21,14 @@ void main() {
setUp(() async {
flutterProject = FlutterProject.fromPath(fs.path.join(getFlutterRoot(), 'dev', 'integration_tests', 'web'));
when(mockWebCompiler.compile(
when(mockWebCompiler.compileDart2js(
target: anyNamed('target'),
minify: anyNamed('minify'),
enabledAssertions: anyNamed('enabledAssertions'),
)).thenAnswer((Invocation invocation) async => 0);
when(mockChromeLauncher.launch(any)).thenAnswer((Invocation invocation) async { });
when(mockChromeLauncher.launch(any)).thenAnswer((Invocation invocation) async {
return null;
});
});
testUsingContext('can build and connect to chrome', () async {