Commit 05862ff9 authored by Ian Hickson's avatar Ian Hickson Committed by Flutter GitHub Bot

Fix platform-specif test logic. (#46623)

parent 55f0bdc0
...@@ -212,16 +212,16 @@ class TestFile { ...@@ -212,16 +212,16 @@ class TestFile {
test.add(line.substring(5)); test.add(line.substring(5));
} else if (line.startsWith('test.windows=')) { } else if (line.startsWith('test.windows=')) {
if (Platform.isWindows) if (Platform.isWindows)
test.add(line.substring(5)); test.add(line.substring(13));
} else if (line.startsWith('test.macos=')) { } else if (line.startsWith('test.macos=')) {
if (Platform.isMacOS) if (Platform.isMacOS)
test.add(line.substring(5)); test.add(line.substring(11));
} else if (line.startsWith('test.linux=')) { } else if (line.startsWith('test.linux=')) {
if (Platform.isLinux) if (Platform.isLinux)
test.add(line.substring(5)); test.add(line.substring(11));
} else if (line.startsWith('test.posix=')) { } else if (line.startsWith('test.posix=')) {
if (Platform.isLinux || Platform.isMacOS) if (Platform.isLinux || Platform.isMacOS)
test.add(line.substring(5)); test.add(line.substring(11));
} else { } else {
throw FormatException('${errorPrefix}Unexpected directive:\n$line'); throw FormatException('${errorPrefix}Unexpected directive:\n$line');
} }
......
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