[flutter_tools] add support for --bundle-sksl-path to flutter run / flutter drive (#80885)

This commit is contained in:
Jonah Williams
2021-04-21 13:59:02 -07:00
committed by GitHub
parent 5d37df13f9
commit 63ba1b23ca
3 changed files with 14 additions and 14 deletions

View File

@@ -507,6 +507,16 @@ void main() {
'--no-pub',
]), throwsA(isA<RPCError>()));
});
testUsingContext('Passes sksl bundle info the build options', () async {
final TestRunCommandWithFakeResidentRunner command = TestRunCommandWithFakeResidentRunner();
await expectLater(() => createTestCommandRunner(command).run(<String>[
'run',
'--no-pub',
'--bundle-sksl-path=foo.json',
]), throwsA(isA<ToolExit>().having((ToolExit exit) => exit.message, 'message', contains('No SkSL shader bundle found at foo.json'))));
});
}
class MockCache extends Mock implements Cache {}