[flutter_tool] experimental resident web runner is not debuggable (#46916)

This commit is contained in:
Jonah Williams
2019-12-12 19:05:48 -08:00
committed by GitHub
parent ea4ff490d6
commit 0497235c20
2 changed files with 9 additions and 0 deletions

View File

@@ -360,6 +360,9 @@ class _ExperimentalResidentWebRunner extends ResidentWebRunner {
dartDefines: dartDefines,
);
@override
bool get debuggingEnabled => false;
@override
Future<int> run({
Completer<DebugConnectionInfo> connectionInfoCompleter,

View File

@@ -486,6 +486,12 @@ void main() {
FeatureFlags: () => TestFeatureFlags(isWebIncrementalCompilerEnabled: true),
}));
test('experimental resident runner is not debuggable', () => testbed.run(() {
expect(residentWebRunner.debuggingEnabled, false);
}, overrides: <Type, Generator>{
FeatureFlags: () => TestFeatureFlags(isWebIncrementalCompilerEnabled: true),
}));
test('Can hot restart after attaching', () => testbed.run(() async {
_setupMocks();
final Completer<DebugConnectionInfo> connectionInfoCompleter = Completer<DebugConnectionInfo>();