Skip to content

Commit

Permalink
Spelling (microsoft#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoref authored and mcooley committed Mar 7, 2019
1 parent 07f4cc1 commit 84941c6
Show file tree
Hide file tree
Showing 29 changed files with 60 additions and 60 deletions.
2 changes: 1 addition & 1 deletion docs/ManualTests.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ Steps:
m. “( )" Parenthesis


**All Calulators Test: Verify memory functions**
**All Calculators Test: Verify memory functions**
Steps:
1. Launch the "Calculator" app.
2. Navigate to "Standard" Calculator.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public static class CalculatorAppLauncher
{
public const string CoreWindowClassName = "Windows.UI.Core.CoreWindow";

// This doesn't actually work right now becaue popup will disappear
// This doesn't actually work right now because popup will disappear
// Bug 13713223: ContentDialog/Popup does not show up in the UIA tree when Windows.Current.Content has an AutomationName set.
// public static readonly UICondition TopLevelWindowUICondition = UICondition.CreateFromId(Constants.TopLevelWindowAutomationId);
public static readonly UICondition CoreWindowUICondition = UICondition.CreateFromClassName(CoreWindowClassName)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ public class PerfConstants
/// <summary>
/// These are uses with the DataSource test property to specify iteration info.
/// </summary>
public const string AppLifecycleInterationsSource = "Table:" + ConfigDirectory + "AppLifecycle.Iterations.xml#PerformanceConfigurations";
public const string AppLifecycleIterationsSource = "Table:" + ConfigDirectory + "AppLifecycle.Iterations.xml#PerformanceConfigurations";
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>

<!--
This file defines a table of preformance configuration for use with
This file defines a table of performance configuration for use with
TAEF Table Based Data-driven Testing.
This table specifies we will run the test three times (each iteration has a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<Buffers Value="15" />
</EventCollector>

<EventCollector Id="EC_Responsiveness.HighCost.Verbose" Name="User Session Logger Higcost Verbose">
<EventCollector Id="EC_Responsiveness.HighCost.Verbose" Name="User Session Logger HighCost Verbose">
<BufferSize Value="1024" />
<Buffers Value="3" PercentageOfTotalMemory="true" MaximumBufferSpace="60" />
</EventCollector>
Expand Down
4 changes: 2 additions & 2 deletions internal/Calculator.UITests/Tests/AppLifecycleTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ public void MethodCleanup()
/// The test launches the application, suspend and resumes it and then terminates the app.
///
/// A TAEF data source is used to specify the Windows Performance Recorder profile and
/// regions of interest file to use and defines threee different configurations to execute this test with.
/// regions of interest file to use and defines three different configurations to execute this test with.
/// Cold: The initial run to get dlls loaded into memory and to execute any first-run app logic.
/// Warm: The run that will produce consistent results and that would be used for measures.
/// Memory: A run that is focused on collecting more info on allocations.
/// </summary>
[TestMethod]
[TestProperty("RunAs", "User")]
[TestProperty("Category", "Performance")]
[TestProperty(WinperfConstants.DataSource, PerfConstants.AppLifecycleInterationsSource)]
[TestProperty(WinperfConstants.DataSource, PerfConstants.AppLifecycleIterationsSource)]
public void AppLifecycleTest()
{
AppLifecycle.Run(Constants.PackageAppUserModelId);
Expand Down
10 changes: 5 additions & 5 deletions src/CalcManager/CEngine/History.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ void CHistoryCollector::ChangeLastBinOp(int nOpCode, bool fPrecInvToHigher)
TruncateEquationSzFromIch(m_lastBinOpStartIndex);
if (fPrecInvToHigher)
{
EnclosePrecInvertionBrackets();
EnclosePrecInversionBrackets();
}
AddBinOpToHistory(nOpCode);
}
Expand Down Expand Up @@ -180,7 +180,7 @@ void CHistoryCollector::AddCloseBraceToHistory()
m_bLastOpndBrace = true;
}

void CHistoryCollector::EnclosePrecInvertionBrackets()
void CHistoryCollector::EnclosePrecInversionBrackets()
{
// Top of the Opnd starts index or 0 is nothing is in top
int ichStart = (m_curOperandIndex > 0) ? m_operandIndices[m_curOperandIndex - 1] : 0;
Expand Down Expand Up @@ -401,9 +401,9 @@ int CHistoryCollector::AddCommand(_In_ const std::shared_ptr<IExpressionCommand>
throw(CALC_E_OUTOFMEMORY);
}

unsigned int nCommmands = 0;
m_spCommands->GetSize(&nCommmands);
return nCommmands - 1;
unsigned int nCommands = 0;
m_spCommands->GetSize(&nCommands);
return nCommands - 1;
}

//To Update the operands in the Expression according to the current Radix
Expand Down
6 changes: 3 additions & 3 deletions src/CalcManager/CEngine/scicomm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ void CCalcEngine::ProcessCommandWorker(WPARAM wParam)
// 1 + (2 Or 3)
if (ni <= nx)
{
m_HistoryCollector.EnclosePrecInvertionBrackets();
m_HistoryCollector.EnclosePrecInversionBrackets();
}
m_HistoryCollector.PopLastOpndStart();
goto DoPrecedenceCheckAgain;
Expand Down Expand Up @@ -507,7 +507,7 @@ void CCalcEngine::ProcessCommandWorker(WPARAM wParam)
nx = NPrecedenceOfOp(m_nOpCode);
if (ni <= nx)
{
m_HistoryCollector.EnclosePrecInvertionBrackets();
m_HistoryCollector.EnclosePrecInversionBrackets();
}
m_HistoryCollector.PopLastOpndStart();

Expand Down Expand Up @@ -600,7 +600,7 @@ void CCalcEngine::ProcessCommandWorker(WPARAM wParam)
nx = NPrecedenceOfOp(m_nOpCode);
if (ni <= nx)
{
m_HistoryCollector.EnclosePrecInvertionBrackets();
m_HistoryCollector.EnclosePrecInversionBrackets();
}
m_HistoryCollector.PopLastOpndStart();

Expand Down
14 changes: 7 additions & 7 deletions src/CalcManager/CalculatorManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ namespace CalculationManager
}

/// <summary>
/// Callback from the CalculatorControll
/// Callback from the CalculatorControl
/// Passed in string representations of memorized numbers get passed to the client
/// </summary>
/// <param name="memorizedNumber">vector containing wstring values of memorized numbers</param>
Expand Down Expand Up @@ -429,7 +429,7 @@ namespace CalculationManager
*commandItr <= MEMORY_COMMAND_TO_UNSIGNED_CHAR(MemoryCommand::MemorizedNumberClearAll))
{
//MemoryCommands(which have values above 255) are pushed on m_savedCommands upon casting to unsigned char.
//SerializeCommands uses m_savedCommands, which is then used in DeSerializeCommnds.
//SerializeCommands uses m_savedCommands, which is then used in DeSerializeCommands.
//Hence, a simple cast to MemoryCommand is not sufficient.
MemoryCommand memoryCommand = static_cast<MemoryCommand>(*commandItr + UCHAR_MAX + 1);
unsigned int indexOfMemory = 0;
Expand Down Expand Up @@ -505,7 +505,7 @@ namespace CalculationManager
/// Recall the memorized number.
/// The memorized number gets loaded to the primary display
/// </summary>
/// <param name="indexOfMemeory">Index of the target memory</param>
/// <param name="indexOfMemory">Index of the target memory</param>
void CalculatorManager::MemorizedNumberLoad(_In_ unsigned int indexOfMemory)
{
SaveMemoryCommand(MemoryCommand::MemorizedNumberLoad, indexOfMemory);
Expand All @@ -521,7 +521,7 @@ namespace CalculationManager
/// It adds primary display value to the selected memory
/// Notify the client with new the new memorize value vector
/// </summary>
/// <param name="indexOfMemeory">Index of the target memory</param>
/// <param name="indexOfMemory">Index of the target memory</param>
void CalculatorManager::MemorizedNumberAdd(_In_ unsigned int indexOfMemory)
{
SaveMemoryCommand(MemoryCommand::MemorizedNumberAdd, indexOfMemory);
Expand Down Expand Up @@ -559,7 +559,7 @@ namespace CalculationManager
/// It adds primary display value to the selected memory
/// Notify the client with new the new memorize value vector
/// </summary>
/// <param name="indexOfMemeory">Index of the target memory</param>
/// <param name="indexOfMemory">Index of the target memory</param>
void CalculatorManager::MemorizedNumberSubtract(_In_ unsigned int indexOfMemory)
{
SaveMemoryCommand(MemoryCommand::MemorizedNumberSubtract, indexOfMemory);
Expand Down Expand Up @@ -603,7 +603,7 @@ namespace CalculationManager
/// Helper function that selects a memory from the vector and set it to CCalcEngine
/// Saved RAT number needs to be copied and passed in, as CCalcEngine destroyed the passed in RAT
/// </summary>
/// <param name="indexOfMemeory">Index of the target memory</param>
/// <param name="indexOfMemory">Index of the target memory</param>
void CalculatorManager::MemorizedNumberSelect(_In_ unsigned int indexOfMemory)
{
if (!(m_currentCalculatorEngine->FInErrorState()))
Expand All @@ -617,7 +617,7 @@ namespace CalculationManager
/// Helper function that needs to be executed when memory is modified
/// When memory is modified, destroy the old RAT and put the new RAT in vector
/// </summary>
/// <param name="indexOfMemeory">Index of the target memory</param>
/// <param name="indexOfMemory">Index of the target memory</param>
void CalculatorManager::MemorizedNumberChanged(_In_ unsigned int indexOfMemory)
{
if (!(m_currentCalculatorEngine->FInErrorState()))
Expand Down
2 changes: 1 addition & 1 deletion src/CalcManager/Header Files/History.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class CHistoryCollector {
void AddCloseBraceToHistory();
void PushLastOpndStart(int ichOpndStart = -1);
void PopLastOpndStart();
void EnclosePrecInvertionBrackets();
void EnclosePrecInversionBrackets();
bool FOpndAddedToHistory();
void CompleteHistoryLine(std::wstring_view numStr);
void ClearHistoryLine(std::wstring_view errStr);
Expand Down
4 changes: 2 additions & 2 deletions src/CalcManager/Ratpack/rat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ void divrat( PRAT *pa, PRAT b, int32_t precision)
// RETURN: None, changes first pointer.
//
// DESCRIPTION: Does the rational equivalent of *pa += b.
// Assumes base is internal througought.
// Assumes base is internal throughout.
//
//-----------------------------------------------------------------------------

Expand All @@ -204,7 +204,7 @@ void subrat( PRAT *pa, PRAT b, int32_t precision)
// RETURN: None, changes first pointer.
//
// DESCRIPTION: Does the rational equivalent of *pa += b.
// Assumes base is internal througought.
// Assumes base is internal throughout.
//
//-----------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion src/CalcViewModel/Common/AlwaysSelectedCollectionView.h
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ namespace CalculatorApp { namespace Common
return Windows::UI::Xaml::DependencyProperty::UnsetValue; // Can't convert
}

virtual Platform::Object^ ConverBack(
virtual Platform::Object^ ConvertBack(
Platform::Object^ /*value*/,
Windows::UI::Xaml::Interop::TypeName /*targetType*/,
Platform::Object^ /*parameter*/,
Expand Down
2 changes: 1 addition & 1 deletion src/CalcViewModel/Common/Automation/LiveRegionHost.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
namespace CalculatorApp::Common::Automation
{
// This class exists so that the app can run on RS2 and use LiveRegions
// to host notifiactions on those builds.
// to host notifications on those builds.
// When the app switches to min version RS3, this class can be removed
// and the app will switch to using the Notification API.
// TODO - MSFT 12735088
Expand Down
6 changes: 3 additions & 3 deletions src/CalcViewModel/Common/NavCategory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ CategoryGroupType NavCategory::GetGroupType(ViewMode mode)
: CategoryGroupType::None;
}

// GetIndex is 0-based, GetPostion is 1-based
// GetIndex is 0-based, GetPosition is 1-based
int NavCategory::GetIndex(ViewMode mode)
{
int position = NavCategory::GetPosition(mode);
Expand Down Expand Up @@ -228,7 +228,7 @@ int NavCategory::GetFlatIndex(ViewMode mode)
: -1;
}

// GetIndex is 0-based, GetPostion is 1-based
// GetIndex is 0-based, GetPosition is 1-based
int NavCategory::GetIndexInGroup(ViewMode mode, CategoryGroupType type)
{
int index = -1;
Expand All @@ -249,7 +249,7 @@ int NavCategory::GetIndexInGroup(ViewMode mode, CategoryGroupType type)
: -1;
}

// GetIndex is 0-based, GetPostion is 1-based
// GetIndex is 0-based, GetPosition is 1-based
int NavCategory::GetPosition(ViewMode mode)
{
int position = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/CalcViewModel/Common/NavCategory.h
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ namespace CalculatorApp
static Platform::String^ GetNameResourceKey(ViewMode mode);
static CategoryGroupType GetGroupType(ViewMode mode);

// GetIndex is 0-based, GetPostion is 1-based
// GetIndex is 0-based, GetPosition is 1-based
static int GetIndex(ViewMode mode);
static int GetFlatIndex(ViewMode mode);
static int GetIndexInGroup(ViewMode mode, CategoryGroupType type);
Expand Down
4 changes: 2 additions & 2 deletions src/CalcViewModel/Common/ValidatingConverters.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ namespace CalculatorApp { namespace Common
return value;
}

virtual Platform::Object^ ConverBack(
virtual Platform::Object^ ConvertBack(
Platform::Object^ value,
Windows::UI::Xaml::Interop::TypeName /*targetType*/,
Platform::Object^ /*parameter*/,
Expand Down Expand Up @@ -56,7 +56,7 @@ namespace CalculatorApp { namespace Common
return value;
}

virtual Platform::Object^ ConverBack(
virtual Platform::Object^ ConvertBack(
Platform::Object^ value,
Windows::UI::Xaml::Interop::TypeName /*targetType*/,
Platform::Object^ /*parameter*/,
Expand Down
2 changes: 1 addition & 1 deletion src/CalcViewModel/DataLoaders/CurrencyDataLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ bool CurrencyDataLoader::TryParseAllRatiosData(_In_ String^ rawJson, _Inout_ Cur
//
// There are a few ways we can get the data needed for Currency Converter, including from cache or from web.
// This function accepts the data from any source, and acts as a 'last-steps' for the converter to be ready.
// This includes identifying which units will be selected and building the map of curreny ratios.
// This includes identifying which units will be selected and building the map of currency ratios.
#pragma optimize("", off) // Turn off optimizations to work around DevDiv 393321
task<void> CurrencyDataLoader::FinalizeUnits(_In_ const vector<UCM::CurrencyStaticData>& staticData, _In_ const CurrencyRatioMap& ratioMap)
{
Expand Down
2 changes: 1 addition & 1 deletion src/CalcViewModel/DateCalculatorViewModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ DateCalculatorViewModel::DateCalculatorViewModel() :
}

/* In the ClipTime function, we used to change timezone to UTC before clipping the time.
The comment from the previous delopers said this was done to eliminate the effects of
The comment from the previous developers said this was done to eliminate the effects of
Daylight Savings Time. We can't think of a good reason why this change in timezone is
necessary and did find bugs related to the change, therefore, we have removed the
change. Just in case, we will see if the clipped time is ever a different day from the
Expand Down
2 changes: 1 addition & 1 deletion src/CalcViewModel/DateCalculatorViewModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ namespace CalculatorApp
void UpdateDisplayResult();
void UpdateStrDateDiffResultAutomationName();
void UpdateStrDateResultAutomationName();
void InitializeDateOutputFormats(Platform::String^ calendarIdentifer);
void InitializeDateOutputFormats(Platform::String^ calendarIdentifier);
Platform::String^ GetDateDiffString() const;
Platform::String^ GetDateDiffStringInDays() const;
Platform::String^ GetLocalizedNumberString(int value) const;
Expand Down
4 changes: 2 additions & 2 deletions src/CalcViewModel/UnitConverterViewModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ void UnitConverterViewModel::Deserialize(Platform::String^ state)
RaisePropertyChanged(nullptr); // Update since all props have been updated.
}

//Saving User Prefernces of Category and Associated-Units across Sessions.
//Saving User Preferences of Category and Associated-Units across Sessions.
void UnitConverterViewModel::SaveUserPreferences()
{
if (UnitsAreValid())
Expand All @@ -695,7 +695,7 @@ void UnitConverterViewModel::SaveUserPreferences()
}
}

//Restoring User Prefernces of Category and Associated-Units.
//Restoring User Preferences of Category and Associated-Units.
void UnitConverterViewModel::RestoreUserPreferences()
{
if (!IsCurrencyCurrentCategory)
Expand Down
6 changes: 3 additions & 3 deletions src/CalcViewModel/UnitConverterViewModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ namespace CalculatorApp
Platform::String^ get() { return ref new Platform::String(m_original.abbreviation.c_str()); }
}

// This method is used to return the desired automation name for default unit in UnitConveter combo box.
// This method is used to return the desired automation name for default unit in UnitConverter combo box.
Platform::String^ ToString() override
{
return AccessibleName;
Expand Down Expand Up @@ -243,7 +243,7 @@ namespace CalculatorApp
Platform::String^ Serialize();
void Deserialize(Platform::String^ state);

//Saving And Restoring User Prefernces of Category and Associated-Units across Sessions.
//Saving And Restoring User Preferences of Category and Associated-Units across Sessions.
void SaveUserPreferences();
void RestoreUserPreferences();

Expand Down Expand Up @@ -333,7 +333,7 @@ namespace CalculatorApp
std::wstring m_valueFromUnlocalized;
std::wstring m_valueToUnlocalized;
bool m_relocalizeStringOnSwitch;
// For Saving the User Preferences only if the Unit convertyer ViewModel is initialised for the first time
// For Saving the User Preferences only if the Unit converter ViewModel is initialised for the first time
bool m_IsFirstTime;

Platform::String^ m_localizedValueFromFormat;
Expand Down
2 changes: 1 addition & 1 deletion src/Calculator/Common/AlwaysSelectedCollectionView.h
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ namespace CalculatorApp { namespace Common
return Windows::UI::Xaml::DependencyProperty::UnsetValue; // Can't convert
}

virtual Platform::Object^ ConverBack(
virtual Platform::Object^ ConvertBack(
Platform::Object^ /*value*/,
Windows::UI::Xaml::Interop::TypeName /*targetType*/,
Platform::Object^ /*parameter*/,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace Numbers
OBSERVABLE_PROPERTY_RW(Platform::String^, SlotValue);
};

// This class is to be consumbed exclusively by Blend and the VS designer
// This class is to be consumed exclusively by Blend and the VS designer
// with this class Blend will be able to populate the controls, the CalculationResults control for example,
// with the hardcoded strings so whoever is working on the UI can actually see how the app would look like
// with semi-realistic data.
Expand Down
2 changes: 1 addition & 1 deletion src/Calculator/Resources/en-GB/Resources.resw
Original file line number Diff line number Diff line change
Expand Up @@ -2601,7 +2601,7 @@
</data>
<data name="xorButton.[using:CalculatorApp.Controls]CalculatorButton.AuditoryFeedback" xml:space="preserve">
<value>x or</value>
<comment>Auditory feedback for Screen Reader users. Users will hear "Display is 7 x or" when the button is pressed. XOR is a mathematical operation on two binary values. Here the feedback is "x or" in order to get the correct pronounciation.</comment>
<comment>Auditory feedback for Screen Reader users. Users will hear "Display is 7 x or" when the button is pressed. XOR is a mathematical operation on two binary values. Here the feedback is "x or" in order to get the correct pronunciation.</comment>
</data>
<data name="andButton.[using:CalculatorApp.Controls]CalculatorButton.AuditoryFeedback" xml:space="preserve">
<value>and</value>
Expand Down
2 changes: 1 addition & 1 deletion src/Calculator/Resources/en-US/Resources.resw
Original file line number Diff line number Diff line change
Expand Up @@ -3085,7 +3085,7 @@
</data>
<data name="xorButton.[using:CalculatorApp.Controls]CalculatorButton.AuditoryFeedback" xml:space="preserve">
<value>x or</value>
<comment>Auditory feedback for Screen Reader users. Users will hear "Display is 7 x or" when the button is pressed. XOR is a mathematical operation on two binary values. Here the feedback is "x or" in order to get the correct pronounciation.</comment>
<comment>Auditory feedback for Screen Reader users. Users will hear "Display is 7 x or" when the button is pressed. XOR is a mathematical operation on two binary values. Here the feedback is "x or" in order to get the correct pronunciation.</comment>
</data>
<data name="andButton.[using:CalculatorApp.Controls]CalculatorButton.AuditoryFeedback" xml:space="preserve">
<value>and</value>
Expand Down
Loading

0 comments on commit 84941c6

Please sign in to comment.