Spelling - remaining code changes (#3963)
* spelling: commit * spelling: exclusion * spelling: initial * spelling: occurred * spelling: programmatically * spelling: should * spelling: successfully * spelling: committed * spelling: directly
This commit is contained in:
parent
eb4b429e19
commit
b574d4e388
|
@ -2,7 +2,7 @@
|
|||
"ID":"B4D3B69656E14D44865C8D818EAE47C4",
|
||||
"ActionKeyword":"*",
|
||||
"Name":"Folder",
|
||||
"Description":"Open favorite folder from wox directorily",
|
||||
"Description":"Open favorite folder from wox directly",
|
||||
"Author":"qianlifeng",
|
||||
"Version":"1.0.0",
|
||||
"Language":"csharp",
|
||||
|
|
|
@ -109,7 +109,7 @@ namespace Microsoft.Plugin.Program.Programs
|
|||
else
|
||||
{
|
||||
ProgramLogger.LogException($"|UWP|XmlNamespaces|{path}" +
|
||||
$"|Error occured while trying to get the XML from {path}", new ArgumentNullException());
|
||||
$"|Error occurred while trying to get the XML from {path}", new ArgumentNullException());
|
||||
|
||||
return new string[] { };
|
||||
}
|
||||
|
@ -156,7 +156,7 @@ namespace Microsoft.Plugin.Program.Programs
|
|||
#if !DEBUG
|
||||
catch (Exception e)
|
||||
{
|
||||
ProgramLogger.LogException($"|UWP|All|{p.InstalledLocation}|An unexpected error occured and "
|
||||
ProgramLogger.LogException($"|UWP|All|{p.InstalledLocation}|An unexpected error occurred and "
|
||||
+ $"unable to convert Package to UWP for {p.Id.FullName}", e);
|
||||
return new Application[] { };
|
||||
}
|
||||
|
@ -204,7 +204,7 @@ namespace Microsoft.Plugin.Program.Programs
|
|||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
ProgramLogger.LogException("UWP" ,"CurrentUserPackages", $"id","An unexpected error occured and "
|
||||
ProgramLogger.LogException("UWP" ,"CurrentUserPackages", $"id","An unexpected error occurred and "
|
||||
+ $"unable to verify if package is valid", e);
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ namespace Microsoft.Plugin.WindowWalker.Components
|
|||
/// Makes sure that a window is excluded from the live preview
|
||||
/// </summary>
|
||||
/// <param name="hwnd">handle to the window to exclude</param>
|
||||
public static void SetWindowExlusionFromLivePreview(IntPtr hwnd)
|
||||
public static void SetWindowExclusionFromLivePreview(IntPtr hwnd)
|
||||
{
|
||||
int renderPolicy = (int)InteropAndHelpers.DwmNCRenderingPolicy.Enabled;
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ namespace PowerLauncher
|
|||
private readonly Storyboard _progressBarStoryboard = new Storyboard();
|
||||
private Settings _settings;
|
||||
private MainViewModel _viewModel;
|
||||
private bool _isTextSetProgramatically;
|
||||
private bool _isTextSetProgrammatically;
|
||||
bool _deletePressed = false;
|
||||
Timer _firstDeleteTimer = new Timer();
|
||||
|
||||
|
@ -128,7 +128,7 @@ namespace PowerLauncher
|
|||
}
|
||||
else if (e.PropertyName == nameof(MainViewModel.SystemQueryText))
|
||||
{
|
||||
this._isTextSetProgramatically = true;
|
||||
this._isTextSetProgrammatically = true;
|
||||
SearchBox.QueryTextBox.Text = _viewModel.SystemQueryText;
|
||||
}
|
||||
}
|
||||
|
@ -290,11 +290,11 @@ namespace PowerLauncher
|
|||
}
|
||||
private void QueryTextBox_TextChanged(object sender, TextChangedEventArgs e)
|
||||
{
|
||||
if (_isTextSetProgramatically)
|
||||
if (_isTextSetProgrammatically)
|
||||
{
|
||||
var textBox = ((TextBox)sender);
|
||||
textBox.SelectionStart = textBox.Text.Length;
|
||||
_isTextSetProgramatically = false;
|
||||
_isTextSetProgrammatically = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -341,4 +341,4 @@ namespace PowerLauncher
|
|||
Hide();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -158,15 +158,15 @@ namespace UnitTests_SvgPreviewHandler
|
|||
svgPreviewControl.DoPreview(mockStream.Object);
|
||||
var textBox = svgPreviewControl.Controls[0] as RichTextBox;
|
||||
var incrementParentControlWidth = 5;
|
||||
var intialParentWidth = svgPreviewControl.Width;
|
||||
var intitialTextBoxWidth = textBox.Width;
|
||||
var finalParentWidth = intialParentWidth + incrementParentControlWidth;
|
||||
var initialParentWidth = svgPreviewControl.Width;
|
||||
var initialTextBoxWidth = textBox.Width;
|
||||
var finalParentWidth = initialParentWidth + incrementParentControlWidth;
|
||||
|
||||
// Act
|
||||
svgPreviewControl.Width += incrementParentControlWidth;
|
||||
|
||||
// Assert
|
||||
Assert.AreEqual(intialParentWidth, intitialTextBoxWidth);
|
||||
Assert.AreEqual(initialParentWidth, initialTextBoxWidth);
|
||||
Assert.AreEqual(finalParentWidth, textBox.Width);
|
||||
}
|
||||
}
|
||||
|
@ -226,15 +226,15 @@ namespace UnitTests_SvgPreviewHandler
|
|||
svgPreviewControl.DoPreview(GetMockStream(svgBuilder.ToString()));
|
||||
var textBox = svgPreviewControl.Controls[0] as RichTextBox;
|
||||
var incrementParentControlWidth = 5;
|
||||
var intialParentWidth = svgPreviewControl.Width;
|
||||
var intitialTextBoxWidth = textBox.Width;
|
||||
var finalParentWidth = intialParentWidth + incrementParentControlWidth;
|
||||
var initialParentWidth = svgPreviewControl.Width;
|
||||
var initialTextBoxWidth = textBox.Width;
|
||||
var finalParentWidth = initialParentWidth + incrementParentControlWidth;
|
||||
|
||||
// Act
|
||||
svgPreviewControl.Width += incrementParentControlWidth;
|
||||
|
||||
// Assert
|
||||
Assert.AreEqual(intialParentWidth, intitialTextBoxWidth);
|
||||
Assert.AreEqual(initialParentWidth, initialTextBoxWidth);
|
||||
Assert.AreEqual(finalParentWidth, textBox.Width);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@ namespace UnitTests_SvgPreviewHandler
|
|||
public class SvgPreviewHandlerHelperTests
|
||||
{
|
||||
[TestMethod]
|
||||
public void CheckBlockedElements_ShoudReturnTrue_IfABlockedElementIsPresent()
|
||||
public void CheckBlockedElements_ShouldReturnTrue_IfABlockedElementIsPresent()
|
||||
{
|
||||
// Arrange
|
||||
var svgBuilder = new StringBuilder();
|
||||
|
@ -29,7 +29,7 @@ namespace UnitTests_SvgPreviewHandler
|
|||
}
|
||||
|
||||
[TestMethod]
|
||||
public void CheckBlockedElements_ShoudReturnTrue_IfBlockedElementsIsPresentInNestedLevel()
|
||||
public void CheckBlockedElements_ShouldReturnTrue_IfBlockedElementsIsPresentInNestedLevel()
|
||||
{
|
||||
// Arrange
|
||||
var svgBuilder = new StringBuilder();
|
||||
|
@ -48,7 +48,7 @@ namespace UnitTests_SvgPreviewHandler
|
|||
}
|
||||
|
||||
[TestMethod]
|
||||
public void CheckBlockedElements_ShoudReturnTrue_IfMultipleBlockedElementsArePresent()
|
||||
public void CheckBlockedElements_ShouldReturnTrue_IfMultipleBlockedElementsArePresent()
|
||||
{
|
||||
// Arrange
|
||||
var svgBuilder = new StringBuilder();
|
||||
|
@ -66,7 +66,7 @@ namespace UnitTests_SvgPreviewHandler
|
|||
}
|
||||
|
||||
[TestMethod]
|
||||
public void CheckBlockedElements_ShoudReturnFalse_IfNoBlockedElementsArePresent()
|
||||
public void CheckBlockedElements_ShouldReturnFalse_IfNoBlockedElementsArePresent()
|
||||
{
|
||||
// Arrange
|
||||
var svgBuilder = new StringBuilder();
|
||||
|
@ -87,7 +87,7 @@ namespace UnitTests_SvgPreviewHandler
|
|||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
[DataRow(null)]
|
||||
public void CheckBlockedElements_ShoudReturnFalse_IfSvgDataIsNullOrWhiteSpaces(string svgData)
|
||||
public void CheckBlockedElements_ShouldReturnFalse_IfSvgDataIsNullOrWhiteSpaces(string svgData)
|
||||
{
|
||||
// Arrange
|
||||
bool foundFilteredElement;
|
||||
|
|
|
@ -44,7 +44,7 @@ void Trace::PowerPreviewSettingsUpdated(LPCWSTR SettingsName, bool oldState, boo
|
|||
{
|
||||
TraceLoggingWrite(
|
||||
g_hProvider,
|
||||
"PowerPreview_TweakUISettings_SuccesfullyUpdatedSettings",
|
||||
"PowerPreview_TweakUISettings_SuccessfullyUpdatedSettings",
|
||||
TraceLoggingWideString(SettingsName, "Previewer_Settings_Name"),
|
||||
TraceLoggingBoolean(oldState, "Old_Settings_State"),
|
||||
TraceLoggingBoolean(newState, "New_Settings_State"),
|
||||
|
|
Loading…
Reference in a new issue