Skip to content

Commit f3302ed

Browse files
author
Jake Ginnivan
committed
Merge pull request #125 from JakeGinnivan/SmallFixesFromCodeplexIssues
Fixing some issues mentioned in codeplex issues I closed
2 parents 405610c + 0b52f3b commit f3302ed

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

src/TestStack.White.UITests/InputDevices/KeyboardTest.cs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System.Collections.Generic;
1+
using System.Collections.Generic;
22
using System.Text;
33
using TestStack.White.InputDevices;
44
using TestStack.White.UIItems;
@@ -12,6 +12,7 @@ public class KeyboardTest : WhiteTestBase
1212
protected override void ExecuteTestRun(WindowsFramework framework)
1313
{
1414
RunTest(EnterAccentedChars);
15+
RunTest(EnterUnicodeCharacters);
1516
RunTest(MultilineTextBox);
1617
RunTest(ShouldSetTheValueOfATextBox);
1718
RunTest(ShouldBeAbleToPressLeftAndRightCursorKeys);
@@ -25,7 +26,18 @@ void EnterAccentedChars()
2526
{
2627
SelectInputControls();
2728
var textBox = MainWindow.Get<TextBox>("TextBox");
28-
const string text = "ãàâäáãàâäáãàâäáãàâäáãàâäáãàâäáãàâäáãàâäá";
29+
const string text = "ãàâäáãàâäáãàâäáãàâäáãàâäáãàâäáãàâäáãàâäá";
30+
31+
textBox.BulkText = text;
32+
33+
Assert.Equal(text, textBox.Text);
34+
}
35+
36+
void EnterUnicodeCharacters()
37+
{
38+
SelectInputControls();
39+
var textBox = MainWindow.Get<TextBox>("TextBox");
40+
const string text = "ŕ&aacute;&acirc;ă&auml;ĺć&ccedil;č&eacute;ę&euml;ě&iacute;&icirc;ď";
2941

3042
textBox.BulkText = text;
3143

src/TestStack.White/Configuration/CoreConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public interface ICoreConfiguration
2424
int TooltipWaitTime { get; set; }
2525
int SuggestionListTimeout { get; set; }
2626
DateFormat DefaultDateFormat { get; set; }
27-
int DragStepCount { get; }
27+
int DragStepCount { get; set; }
2828
bool InProc { get; set; }
2929
bool ComboBoxItemsPopulatedWithoutDropDownOpen { get; set; }
3030
IWaitHook AdditionalWaitHook { get; set; }

0 commit comments

Comments
 (0)