Unverified Commit 6fc99e98 authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

rename headless server to web server (#42970)

parent 21be8372
......@@ -190,7 +190,7 @@ String parseVersionForWindows(String input) {
/// A special device type to allow serving for arbitrary browsers.
class WebServerDevice extends Device {
WebServerDevice() : super(
'headless-server',
'web-server',
platformType: PlatformType.web,
category: Category.web,
ephemeral: false,
......@@ -228,7 +228,7 @@ class WebServerDevice extends Device {
}
@override
String get name => 'Headless Server';
String get name => 'Web Server';
@override
DevicePortForwarder get portForwarder => const NoOpDevicePortForwarder();
......
......@@ -49,8 +49,8 @@ void main() {
test('Server defaults', () async {
final WebServerDevice device = WebServerDevice();
expect(device.name, 'Headless Server');
expect(device.id, 'headless-server');
expect(device.name, 'Web Server');
expect(device.id, 'web-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