mirror of
https://github.com/flutter/flutter
synced 2024-10-12 19:23:02 +00:00
[flutter_tools] adjust some feature settings (#82851)
This commit is contained in:
parent
574dfc3830
commit
666675078c
|
@ -301,6 +301,10 @@ const Feature windowsUwpEmbedding = Feature(
|
|||
available: true,
|
||||
enabledByDefault: false,
|
||||
),
|
||||
dev: FeatureChannelSetting(
|
||||
available: true,
|
||||
enabledByDefault: false,
|
||||
),
|
||||
);
|
||||
|
||||
/// A [Feature] is a process for conditionally enabling tool features.
|
||||
|
|
|
@ -467,6 +467,19 @@ void main() {
|
|||
expect(featureFlags.isWindowsUwpEnabled, true);
|
||||
});
|
||||
|
||||
testWithoutContext('Flutter Windows UWP desktop off by default on dev', () {
|
||||
final FeatureFlags featureFlags = createFlags('dev');
|
||||
|
||||
expect(featureFlags.isWindowsUwpEnabled, false);
|
||||
});
|
||||
|
||||
testWithoutContext('Flutter Windows UWP desktop enabled with config on dev', () {
|
||||
final FeatureFlags featureFlags = createFlags('dev');
|
||||
testConfig.setValue('enable-windows-uwp-desktop', true);
|
||||
|
||||
expect(featureFlags.isWindowsUwpEnabled, true);
|
||||
});
|
||||
|
||||
testWithoutContext('Flutter Windows UWP desktop off by default on stable', () {
|
||||
final FeatureFlags featureFlags = createFlags('stable');
|
||||
|
||||
|
|
Loading…
Reference in a new issue