Skip to content

Commit ab9c4cd

Browse files
committed
fix the tests
1 parent 3b34451 commit ab9c4cd

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

src/cascadia/LocalTests_TerminalApp/SettingsTests.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2685,7 +2685,7 @@ namespace TerminalAppLocalTests
26852685
VERIFY_ARE_EQUAL(L"${profile.name}", realArgs.TerminalArgs().Profile());
26862686
}
26872687

2688-
auto expandedCommands = implementation::TerminalPage::_ExpandCommands(commands.GetView(), settings.GetProfiles());
2688+
auto expandedCommands = implementation::TerminalPage::_ExpandCommands(commands.GetView(), settings.GetProfiles(), settings._globals.GetColorSchemes());
26892689
_logCommandNames(expandedCommands);
26902690

26912691
VERIFY_ARE_EQUAL(0u, settings._warnings.size());
@@ -2815,7 +2815,7 @@ namespace TerminalAppLocalTests
28152815
VERIFY_ARE_EQUAL(L"${profile.name}", realArgs.TerminalArgs().Profile());
28162816
}
28172817

2818-
auto expandedCommands = implementation::TerminalPage::_ExpandCommands(commands.GetView(), settings.GetProfiles());
2818+
auto expandedCommands = implementation::TerminalPage::_ExpandCommands(commands.GetView(), settings.GetProfiles(), settings._globals.GetColorSchemes());
28192819
_logCommandNames(expandedCommands);
28202820

28212821
VERIFY_ARE_EQUAL(0u, settings._warnings.size());
@@ -2948,7 +2948,7 @@ namespace TerminalAppLocalTests
29482948
}
29492949

29502950
settings._ValidateSettings();
2951-
auto expandedCommands = implementation::TerminalPage::_ExpandCommands(commands.GetView(), settings.GetProfiles());
2951+
auto expandedCommands = implementation::TerminalPage::_ExpandCommands(commands.GetView(), settings.GetProfiles(), settings._globals.GetColorSchemes());
29522952
_logCommandNames(expandedCommands);
29532953

29542954
VERIFY_ARE_EQUAL(0u, settings._warnings.size());
@@ -3069,7 +3069,7 @@ namespace TerminalAppLocalTests
30693069

30703070
auto& commands = settings._globals.GetCommands();
30713071
settings._ValidateSettings();
3072-
auto expandedCommands = implementation::TerminalPage::_ExpandCommands(commands.GetView(), settings.GetProfiles());
3072+
auto expandedCommands = implementation::TerminalPage::_ExpandCommands(commands.GetView(), settings.GetProfiles(), settings._globals.GetColorSchemes());
30733073
_logCommandNames(expandedCommands);
30743074

30753075
VERIFY_ARE_EQUAL(0u, settings._warnings.size());
@@ -3177,7 +3177,7 @@ namespace TerminalAppLocalTests
31773177

31783178
auto& commands = settings._globals.GetCommands();
31793179
settings._ValidateSettings();
3180-
auto expandedCommands = implementation::TerminalPage::_ExpandCommands(commands.GetView(), settings.GetProfiles());
3180+
auto expandedCommands = implementation::TerminalPage::_ExpandCommands(commands.GetView(), settings.GetProfiles(), settings._globals.GetColorSchemes());
31813181
_logCommandNames(expandedCommands);
31823182

31833183
VERIFY_ARE_EQUAL(0u, settings._warnings.size());
@@ -3316,7 +3316,7 @@ namespace TerminalAppLocalTests
33163316

33173317
auto& commands = settings._globals.GetCommands();
33183318
settings._ValidateSettings();
3319-
auto expandedCommands = implementation::TerminalPage::_ExpandCommands(commands.GetView(), settings.GetProfiles());
3319+
auto expandedCommands = implementation::TerminalPage::_ExpandCommands(commands.GetView(), settings.GetProfiles(), settings._globals.GetColorSchemes());
33203320
_logCommandNames(expandedCommands);
33213321

33223322
VERIFY_ARE_EQUAL(0u, settings._warnings.size());
@@ -3469,7 +3469,7 @@ namespace TerminalAppLocalTests
34693469

34703470
auto& commands = settings._globals.GetCommands();
34713471
settings._ValidateSettings();
3472-
auto expandedCommands = implementation::TerminalPage::_ExpandCommands(commands.GetView(), settings.GetProfiles());
3472+
auto expandedCommands = implementation::TerminalPage::_ExpandCommands(commands.GetView(), settings.GetProfiles(), settings._globals.GetColorSchemes());
34733473
_logCommandNames(expandedCommands);
34743474

34753475
VERIFY_ARE_EQUAL(0u, settings._warnings.size());
@@ -3582,7 +3582,7 @@ namespace TerminalAppLocalTests
35823582

35833583
auto& commands = settings._globals.GetCommands();
35843584
settings._ValidateSettings();
3585-
auto expandedCommands = implementation::TerminalPage::_ExpandCommands(commands.GetView(), settings.GetProfiles());
3585+
auto expandedCommands = implementation::TerminalPage::_ExpandCommands(commands.GetView(), settings.GetProfiles(), settings._globals.GetColorSchemes());
35863586
_logCommandNames(expandedCommands);
35873587

35883588
VERIFY_ARE_EQUAL(0u, settings._warnings.size());

src/cascadia/TerminalApp/TerminalPage.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2049,8 +2049,6 @@ namespace winrt::TerminalApp::implementation
20492049
// This is a helper to aid in sorting commands by their `Name`s, alphabetically.
20502050
static bool _compareSchemeNames(const winrt::TerminalApp::ColorScheme& lhs, const winrt::TerminalApp::ColorScheme& rhs)
20512051
{
2052-
// std::wstring_view leftName{ lhs.Name().c_str(), lhs.Name().size() };
2053-
// std::wstring_view rightName{ rhs.Name().c_str(), rhs.Name().size() };
20542052
std::wstring leftName{ lhs.Name() };
20552053
std::wstring rightName{ rhs.Name() };
20562054
return leftName.compare(rightName) < 0;

0 commit comments

Comments
 (0)