Revert "[flutter_tools] show web-server in flutter devices"
This commit is contained in:
committed by
GitHub
parent
fd65fd1b16
commit
5c334d10df
@@ -189,7 +189,8 @@ void main() {
|
||||
isNot(contains(isA<GoogleChromeDevice>())));
|
||||
});
|
||||
|
||||
testWithoutContext('Web Server device is listed', () async {
|
||||
testWithoutContext('Web Server device is listed if enabled via showWebServerDevice', () async {
|
||||
WebServerDevice.showWebServerDevice = true;
|
||||
final WebDevices webDevices = WebDevices(
|
||||
featureFlags: TestFeatureFlags(isWebEnabled: true),
|
||||
fileSystem: MemoryFileSystem.test(),
|
||||
@@ -204,6 +205,22 @@ void main() {
|
||||
contains(isA<WebServerDevice>()));
|
||||
});
|
||||
|
||||
testWithoutContext('Web Server device is not listed if disabled via showWebServerDevice', () async {
|
||||
WebServerDevice.showWebServerDevice = false;
|
||||
final WebDevices webDevices = WebDevices(
|
||||
featureFlags: TestFeatureFlags(isWebEnabled: true),
|
||||
fileSystem: MemoryFileSystem.test(),
|
||||
logger: BufferLogger.test(),
|
||||
platform: FakePlatform(
|
||||
environment: <String, String>{}
|
||||
),
|
||||
processManager: FakeProcessManager.any(),
|
||||
);
|
||||
|
||||
expect(await webDevices.pollingGetDevices(),
|
||||
isNot(contains(isA<WebServerDevice>())));
|
||||
});
|
||||
|
||||
testWithoutContext('Chrome invokes version command on non-Windows platforms', () async {
|
||||
final FakeProcessManager processManager = FakeProcessManager.list(<FakeCommand>[
|
||||
const FakeCommand(
|
||||
|
||||
Reference in New Issue
Block a user