[flutter_tools] ensure --dart-define can parse args with commas (#73798)

This commit is contained in:
Jonah Williams
2021-01-15 13:51:32 -08:00
committed by GitHub
parent b2f99e5677
commit 7ee910b0a8
5 changed files with 6 additions and 5 deletions

View File

@@ -17,6 +17,6 @@ void main() {
});
test('Can run with --dart-define', () async {
await driver.waitFor(find.text('ExampleValue'));
await driver.waitFor(find.text('Example,AValue'));
});
}

View File

@@ -8,7 +8,7 @@ Future<void> main() async {
final StringBuffer output = StringBuffer();
const String combined = String.fromEnvironment('test.valueA') +
String.fromEnvironment('test.valueB');
if (combined == 'ExampleValue') {
if (combined == 'Example,AValue') {
output.write('--- TEST SUCCEEDED ---');
print('--- TEST SUCCEEDED ---');
} else {