style(test): dart format settings + keymap category tests
Reflow lines `dart format` collapses — the T-451/T-452 test additions were committed before `make format` ran, so the committed copies were unformatted. No behavior change; keeps the push format gate green. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -49,10 +49,7 @@ void main() {
|
||||
});
|
||||
|
||||
test('contributes a Keymap settings category routed through the preset commands (T-451)', () {
|
||||
final category = KeybindingsUiExtension().contributions
|
||||
.whereType<SettingsCategoryContribution>()
|
||||
.firstWhere((c) => c.id == 'keymap')
|
||||
.category;
|
||||
final category = KeybindingsUiExtension().contributions.whereType<SettingsCategoryContribution>().firstWhere((c) => c.id == 'keymap').category;
|
||||
expect(category.title, 'Keymap');
|
||||
final field = category.sections.expand((s) => s.fields).firstWhere((f) => f.key == kKeymapPresetSetting);
|
||||
expect(field.kind, SettingsFieldKind.select);
|
||||
|
||||
@@ -132,7 +132,10 @@ void main() {
|
||||
label: 'Preset',
|
||||
defaultValue: 'default',
|
||||
applyCommandPrefix: 'test.apply.',
|
||||
options: [SettingsOption(value: 'default', label: 'Default'), SettingsOption(value: 'vim', label: 'Vim')],
|
||||
options: [
|
||||
SettingsOption(value: 'default', label: 'Default'),
|
||||
SettingsOption(value: 'vim', label: 'Vim'),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user