Unverified Commit 06864e44 authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

Rename Server/web device to Headless Server/headless-server (#41618)

parent 41b87255
......@@ -190,7 +190,7 @@ String parseVersionForWindows(String input) {
/// A special device type to allow serving for arbitrary browsers.
class WebServerDevice extends Device {
WebServerDevice() : super(
'web',
'headless-server',
platformType: PlatformType.web,
category: Category.web,
ephemeral: false,
......@@ -228,7 +228,7 @@ class WebServerDevice extends Device {
}
@override
String get name => 'Server';
String get name => 'Headless Server';
@override
DevicePortForwarder get portForwarder => const NoOpDevicePortForwarder();
......
......@@ -48,8 +48,8 @@ void main() {
test('Server defaults', () async {
final WebServerDevice device = WebServerDevice();
expect(device.name, 'Server');
expect(device.id, 'web');
expect(device.name, 'Headless Server');
expect(device.id, 'headless-server');
expect(device.supportsHotReload, true);
expect(device.supportsHotRestart, true);
expect(device.supportsStartPaused, true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment