Added missing code block language in docs (#147481)
- added language for all code blocks - replaced `bash` or `shell` with `sh` for consistency. - added `sh` and `console` in the GitHub template link generator. - updated test for GitHub template.
This commit is contained in:
@@ -9,7 +9,7 @@ Intended for use with devicelab tests.
|
||||
If you want to run a driver test locally, to debug a problem with a test, you
|
||||
can use this command from the appropriate subdirectory:
|
||||
|
||||
```shell
|
||||
```sh
|
||||
flutter drive -t <test> --driver <driver>
|
||||
```
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Android custom host app
|
||||
|
||||
Android host app for a Flutter module created using
|
||||
```
|
||||
```sh
|
||||
$ flutter create -t module hello
|
||||
```
|
||||
and placed in a sibling folder to (a clone of) the host app.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Android host app
|
||||
|
||||
Android host app for a Flutter module created using
|
||||
```
|
||||
```sh
|
||||
$ flutter create -t module hello
|
||||
```
|
||||
and placed in a sibling folder to (a clone of) the host app.
|
||||
|
||||
@@ -28,7 +28,7 @@ subtle translation issues.
|
||||
|
||||
To run the test cases locally, use `flutter drive`[^2]:
|
||||
|
||||
```shell
|
||||
```sh
|
||||
flutter drive lib/frame_rate_main.dart --driver test_driver/frame_rate_test.dart
|
||||
```
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
Used by the `module_test_ios.dart` device lab test.
|
||||
|
||||
iOS host app for a Flutter module created using
|
||||
```
|
||||
```sh
|
||||
$ flutter create -t module hello
|
||||
```
|
||||
and placed in a sibling folder to (a clone of) the host app.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Android host app
|
||||
|
||||
Android host app for a Flutter module created using
|
||||
```
|
||||
```sh
|
||||
$ flutter create -t module hello
|
||||
```
|
||||
and placed in a sibling folder to (a clone of) the host app.
|
||||
|
||||
@@ -6,7 +6,7 @@ chrome://version.
|
||||
|
||||
Start `chromedriver` using the following command:
|
||||
|
||||
```
|
||||
```sh
|
||||
chromedriver --port=4444
|
||||
```
|
||||
|
||||
@@ -18,7 +18,7 @@ mode you'd like to run the test in.
|
||||
|
||||
Here's an example of running an integration test:
|
||||
|
||||
```
|
||||
```sh
|
||||
flutter drive --target=test_driver/text_editing_integration.dart \
|
||||
-d web-server \
|
||||
--browser-name=chrome \
|
||||
|
||||
Reference in New Issue
Block a user