mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Add more information to cannot find Chrome message (#41695)
This commit is contained in:
parent
5e1f600fe7
commit
ce2c708a90
@ -22,7 +22,8 @@ class WebValidator extends DoctorValidator {
|
||||
ValidationMessage('$kChromeEnvironment = $chrome')
|
||||
else
|
||||
if (!canRunChrome)
|
||||
ValidationMessage.hint('$kChromeEnvironment not set')
|
||||
ValidationMessage.hint('Cannot find Chrome. Try setting '
|
||||
'$kChromeEnvironment to a Chrome executable.')
|
||||
else
|
||||
ValidationMessage('Chrome at $chrome'),
|
||||
];
|
||||
|
@ -50,7 +50,7 @@ void main() {
|
||||
when(mockProcessManager.canRun(kMacOSExecutable)).thenReturn(false);
|
||||
final ValidationResult result = await webValidator.validate();
|
||||
expect(result.messages, <ValidationMessage>[
|
||||
ValidationMessage.hint('CHROME_EXECUTABLE not set'),
|
||||
ValidationMessage.hint('Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.'),
|
||||
]);
|
||||
expect(result.type, ValidationType.missing);
|
||||
}));
|
||||
|
Loading…
Reference in New Issue
Block a user