Skip to content

Commit 18cd7a3

Browse files
authored
v1.12.13+hotfix.6 cherry-picks (flutter#46741)
* b63683b Update configuration for flutter features
1 parent 27321eb commit 18cd7a3

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

packages/flutter_tools/lib/src/features.dart

+4
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ const Feature flutterWebFeature = Feature(
9191
available: true,
9292
enabledByDefault: false,
9393
),
94+
beta: FeatureChannelSetting(
95+
available: true,
96+
enabledByDefault: false,
97+
),
9498
);
9599

96100
/// The [Feature] for macOS desktop.

packages/flutter_tools/test/general.shard/features_test.dart

+4-4
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ void main() {
7878
}));
7979

8080
test('flutter web help string', () {
81-
expect(flutterWebFeature.generateHelpMessage(), 'Enable or disable Flutter for web. This setting will take effect on the master and dev channels.');
81+
expect(flutterWebFeature.generateHelpMessage(), 'Enable or disable Flutter for web. This setting will take effect on the master, dev, and beta channels.');
8282
});
8383

8484
test('flutter macOS desktop help string', () {
@@ -155,18 +155,18 @@ void main() {
155155
expect(featureFlags.isWebEnabled, false);
156156
}));
157157

158-
test('flutter web not enabled with config on beta', () => testbed.run(() {
158+
test('flutter web enabled with config on beta', () => testbed.run(() {
159159
when(mockFlutterVerion.channel).thenReturn('beta');
160160
when<bool>(mockFlutterConfig.getValue('enable-web') as bool).thenReturn(true);
161161

162-
expect(featureFlags.isWebEnabled, false);
162+
expect(featureFlags.isWebEnabled, true);
163163
}));
164164

165165
test('flutter web not enabled with environment variable on beta', () => testbed.run(() {
166166
when(mockFlutterVerion.channel).thenReturn('beta');
167167
when(mockPlatform.environment).thenReturn(<String, String>{'FLUTTER_WEB': 'true'});
168168

169-
expect(featureFlags.isWebEnabled, false);
169+
expect(featureFlags.isWebEnabled, true);
170170
}));
171171

172172
test('flutter web off by default on stable', () => testbed.run(() {

0 commit comments

Comments
 (0)