@@ -79,25 +79,28 @@ void main() {
7979 testWithoutContext ('flutter web help string' , () {
8080 expect (flutterWebFeature.generateHelpMessage (),
8181 'Enable or disable Flutter for web. '
82- 'This setting will take effect on the master, dev, and beta channels.' );
82+ 'This setting will take effect on the master, dev, beta, and stable channels.' );
8383 });
8484
8585 testWithoutContext ('flutter macOS desktop help string' , () {
8686 expect (flutterMacOSDesktopFeature.generateHelpMessage (),
8787 'Enable or disable beta-quality support for desktop on macOS. '
88- 'This setting will take effect on the master and dev channels.' );
88+ 'This setting will take effect on the master, dev, beta, and stable channels. '
89+ 'Newer beta versions are available on the beta channel.' );
8990 });
9091
9192 testWithoutContext ('flutter Linux desktop help string' , () {
9293 expect (flutterLinuxDesktopFeature.generateHelpMessage (),
9394 'Enable or disable beta-quality support for desktop on Linux. '
94- 'This setting will take effect on the master and dev channels.' );
95+ 'This setting will take effect on the master, dev, beta, and stable channels. '
96+ 'Newer beta versions are available on the beta channel.' );
9597 });
9698
9799 testWithoutContext ('flutter Windows desktop help string' , () {
98100 expect (flutterWindowsDesktopFeature.generateHelpMessage (),
99101 'Enable or disable beta-quality support for desktop on Windows. '
100- 'This setting will take effect on the master and dev channels.' );
102+ 'This setting will take effect on the master, dev, beta, and stable channels. '
103+ 'Newer beta versions are available on the beta channel.' );
101104 });
102105
103106 testWithoutContext ('help string on multiple channels' , () {
@@ -176,17 +179,18 @@ void main() {
176179 expect (featureFlags.isWebEnabled, true );
177180 });
178181
179- testWithoutContext ('flutter web off by default on stable' , () {
182+ testWithoutContext ('flutter web on by default on stable' , () {
180183 when (mockFlutterVerion.channel).thenReturn ('stable' );
184+ when < bool > (mockFlutterConfig.getValue (any) as bool ).thenReturn (null );
181185
182- expect (featureFlags.isWebEnabled, false );
186+ expect (featureFlags.isWebEnabled, true );
183187 });
184188
185- testWithoutContext ('flutter web not enabled with config on stable' , () {
189+ testWithoutContext ('flutter web enabled with config on stable' , () {
186190 when (mockFlutterVerion.channel).thenReturn ('stable' );
187191 when < bool > (mockFlutterConfig.getValue ('enable-web' ) as bool ).thenReturn (true );
188192
189- expect (featureFlags.isWebEnabled, false );
193+ expect (featureFlags.isWebEnabled, true );
190194 });
191195
192196 testWithoutContext ('flutter web not enabled with environment variable on stable' , () {
@@ -244,18 +248,18 @@ void main() {
244248 expect (featureFlags.isMacOSEnabled, false );
245249 });
246250
247- testWithoutContext ('flutter macos desktop not enabled with config on beta' , () {
251+ testWithoutContext ('flutter macos desktop enabled with config on beta' , () {
248252 when (mockFlutterVerion.channel).thenReturn ('beta' );
249253 when < bool > (mockFlutterConfig.getValue ('enable-macos-desktop' ) as bool ).thenReturn (true );
250254
251- expect (featureFlags.isMacOSEnabled, false );
255+ expect (featureFlags.isMacOSEnabled, true );
252256 });
253257
254- testWithoutContext ('flutter macos desktop not enabled with environment variable on beta' , () {
258+ testWithoutContext ('flutter macos desktop enabled with environment variable on beta' , () {
255259 when (mockFlutterVerion.channel).thenReturn ('beta' );
256260 when (mockPlatform.environment).thenReturn (< String , String > {'FLUTTER_MACOS' : 'true' });
257261
258- expect (featureFlags.isMacOSEnabled, false );
262+ expect (featureFlags.isMacOSEnabled, true );
259263 });
260264
261265 testWithoutContext ('flutter macos desktop off by default on stable' , () {
@@ -264,18 +268,18 @@ void main() {
264268 expect (featureFlags.isMacOSEnabled, false );
265269 });
266270
267- testWithoutContext ('flutter macos desktop not enabled with config on stable' , () {
271+ testWithoutContext ('flutter macos desktop enabled with config on stable' , () {
268272 when (mockFlutterVerion.channel).thenReturn ('stable' );
269273 when < bool > (mockFlutterConfig.getValue ('enable-macos-desktop' ) as bool ).thenReturn (true );
270274
271- expect (featureFlags.isMacOSEnabled, false );
275+ expect (featureFlags.isMacOSEnabled, true );
272276 });
273277
274- testWithoutContext ('flutter macos desktop not enabled with environment variable on stable' , () {
278+ testWithoutContext ('flutter macos desktop enabled with environment variable on stable' , () {
275279 when (mockFlutterVerion.channel).thenReturn ('stable' );
276280 when (mockPlatform.environment).thenReturn (< String , String > {'FLUTTER_MACOS' : 'true' });
277281
278- expect (featureFlags.isMacOSEnabled, false );
282+ expect (featureFlags.isMacOSEnabled, true );
279283 });
280284
281285 /// Flutter Linux Desktop
@@ -325,18 +329,18 @@ void main() {
325329 expect (featureFlags.isLinuxEnabled, false );
326330 });
327331
328- testWithoutContext ('flutter linux desktop not enabled with config on beta' , () {
332+ testWithoutContext ('flutter linux desktop enabled with config on beta' , () {
329333 when (mockFlutterVerion.channel).thenReturn ('beta' );
330334 when < bool > (mockFlutterConfig.getValue ('enable-linux-desktop' ) as bool ).thenReturn (true );
331335
332- expect (featureFlags.isLinuxEnabled, false );
336+ expect (featureFlags.isLinuxEnabled, true );
333337 });
334338
335- testWithoutContext ('flutter linux desktop not enabled with environment variable on beta' , () {
339+ testWithoutContext ('flutter linux desktop enabled with environment variable on beta' , () {
336340 when (mockFlutterVerion.channel).thenReturn ('beta' );
337341 when (mockPlatform.environment).thenReturn (< String , String > {'FLUTTER_LINUX' : 'true' });
338342
339- expect (featureFlags.isLinuxEnabled, false );
343+ expect (featureFlags.isLinuxEnabled, true );
340344 });
341345
342346 testWithoutContext ('flutter linux desktop off by default on stable' , () {
@@ -345,18 +349,18 @@ void main() {
345349 expect (featureFlags.isLinuxEnabled, false );
346350 });
347351
348- testWithoutContext ('flutter linux desktop not enabled with config on stable' , () {
352+ testWithoutContext ('flutter linux desktop enabled with config on stable' , () {
349353 when (mockFlutterVerion.channel).thenReturn ('stable' );
350354 when < bool > (mockFlutterConfig.getValue ('enable-linux-desktop' ) as bool ).thenReturn (true );
351355
352- expect (featureFlags.isLinuxEnabled, false );
356+ expect (featureFlags.isLinuxEnabled, true );
353357 });
354358
355- testWithoutContext ('flutter linux desktop not enabled with environment variable on stable' , () {
359+ testWithoutContext ('flutter linux desktop enabled with environment variable on stable' , () {
356360 when (mockFlutterVerion.channel).thenReturn ('stable' );
357361 when (mockPlatform.environment).thenReturn (< String , String > {'FLUTTER_LINUX' : 'true' });
358362
359- expect (featureFlags.isLinuxEnabled, false );
363+ expect (featureFlags.isLinuxEnabled, true );
360364 });
361365
362366 /// Flutter Windows desktop.
@@ -406,18 +410,18 @@ void main() {
406410 expect (featureFlags.isWindowsEnabled, false );
407411 });
408412
409- testWithoutContext ('flutter windows desktop not enabled with config on beta' , () {
413+ testWithoutContext ('flutter windows desktop enabled with config on beta' , () {
410414 when (mockFlutterVerion.channel).thenReturn ('beta' );
411415 when < bool > (mockFlutterConfig.getValue ('enable-windows-desktop' ) as bool ).thenReturn (true );
412416
413- expect (featureFlags.isWindowsEnabled, false );
417+ expect (featureFlags.isWindowsEnabled, true );
414418 });
415419
416- testWithoutContext ('flutter windows desktop not enabled with environment variable on beta' , () {
420+ testWithoutContext ('flutter windows desktop enabled with environment variable on beta' , () {
417421 when (mockFlutterVerion.channel).thenReturn ('beta' );
418422 when (mockPlatform.environment).thenReturn (< String , String > {'FLUTTER_WINDOWS' : 'true' });
419423
420- expect (featureFlags.isWindowsEnabled, false );
424+ expect (featureFlags.isWindowsEnabled, true );
421425 });
422426
423427 testWithoutContext ('flutter windows desktop off by default on stable' , () {
@@ -426,18 +430,18 @@ void main() {
426430 expect (featureFlags.isWindowsEnabled, false );
427431 });
428432
429- testWithoutContext ('flutter windows desktop not enabled with config on stable' , () {
433+ testWithoutContext ('flutter windows desktop enabled with config on stable' , () {
430434 when (mockFlutterVerion.channel).thenReturn ('stable' );
431435 when < bool > (mockFlutterConfig.getValue ('enable-windows-desktop' ) as bool ).thenReturn (true );
432436
433- expect (featureFlags.isWindowsEnabled, false );
437+ expect (featureFlags.isWindowsEnabled, true );
434438 });
435439
436- testWithoutContext ('flutter windows desktop not enabled with environment variable on stable' , () {
440+ testWithoutContext ('flutter windows desktop enabled with environment variable on stable' , () {
437441 when (mockFlutterVerion.channel).thenReturn ('stable' );
438442 when (mockPlatform.environment).thenReturn (< String , String > {'FLUTTER_WINDOWS' : 'true' });
439443
440- expect (featureFlags.isWindowsEnabled, false );
444+ expect (featureFlags.isWindowsEnabled, true );
441445 });
442446 });
443447}
0 commit comments