Skip to content

Commit b7cd3f8

Browse files
author
nturgut
authored
Revert "Re-merge Switch web-render option default to auto. Add documentation (flutter#23187)" (flutter#23246)
This reverts commit 08d5c33.
1 parent 3700101 commit b7cd3f8

File tree

3 files changed

+1
-11
lines changed

3 files changed

+1
-11
lines changed

lib/web_ui/dev/README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ To run unit tests only:
4949
felt test --unit-tests-only
5050
```
5151

52-
Most of the unit tests are run using the html rendering backends. The unit tests under `test/cancaskit` directory use `canvaskit` backend.
53-
5452
To run integration tests only. For now these tests are only available on Chrome Desktop browsers. These tests will fetch the flutter repository for using `flutter drive` and `flutter pub get` commands. The repository will be synced to the youngest commit older than the engine commit.
5553

5654
```
@@ -63,12 +61,6 @@ To skip cloning the flutter repository use the following flag. This flag can sav
6361
felt test --integration-tests-only --use-system-flutter
6462
```
6563

66-
We can use different rendering backends for running the integrations tests. If one wants to use html backend use the following command. `web-renderer` flag accepts 3 different options: `html`, `canvaskit`, `auto`.
67-
68-
```
69-
felt test --integration-tests-only --web-renderer=html
70-
```
71-
7264
To run tests on Firefox (this will work only on a Linux device):
7365

7466
```

lib/web_ui/dev/test_runner.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -619,8 +619,6 @@ class TestCommand extends Command<bool> with ArgUtils {
619619
'--enable-experiment=non-nullable',
620620
'--no-sound-null-safety',
621621
if (input.forCanvasKit) '-DFLUTTER_WEB_USE_SKIA=true',
622-
if (!input.forCanvasKit) '-DFLUTTER_WEB_AUTO_DETECT=false',
623-
if (!input.forCanvasKit) '-DFLUTTER_WEB_USE_SKIA=false',
624622
'-O2',
625623
'-o',
626624
targetFileName, // target path.

lib/web_ui/lib/src/engine/canvaskit/initialization.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ bool _detectRenderer() {
3131
/// Using flutter tools option "--web-render=auto" would set the value to true.
3232
/// Otherwise, it would be false.
3333
const bool _autoDetect =
34-
bool.fromEnvironment('FLUTTER_WEB_AUTO_DETECT', defaultValue: true);
34+
bool.fromEnvironment('FLUTTER_WEB_AUTO_DETECT', defaultValue: false);
3535

3636
/// Enable the Skia-based rendering backend.
3737
///

0 commit comments

Comments
 (0)