Reland - Wire up hot restart and incremental rebuilds for web (#33533)
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user