提交 32339d8b 编写于 作者: A Andrew Casey

Unflip condition in InteractiveWindow.InsertCode

It should work when there is no standard input.  This was causing problems
for a lot of (still skipped) integration tests.
上级 ed974ba7
......@@ -277,7 +277,7 @@ private void CancelStandardInput()
public void InsertCode(string text)
{
if (_window._stdInputStart == null)
if (_window._stdInputStart != null)
{
return;
}
......
......@@ -288,7 +288,7 @@ public void CallReadStandardInputOnUIThread()
[Fact]
public void CallBackspaceOnNonUIThread()
{
Window.Operations.BreakLine(); // Something to backspace.
Window.InsertCode("1"); // Something to backspace.
Task.Run(() => Window.Operations.Backspace()).PumpingWait();
}
......@@ -308,7 +308,7 @@ public void CallClearHistoryOnNonUIThread()
[Fact]
public void CallClearViewOnNonUIThread()
{
Window.Operations.BreakLine(); // Something to clear.
Window.InsertCode("1"); // Something to clear.
Task.Run(() => Window.Operations.ClearView()).PumpingWait();
}
......@@ -357,7 +357,7 @@ public void CallEndOnNonUIThread()
[Fact]
public void CallSelectAllOnNonUIThread()
{
Window.Operations.BreakLine(); // Something to select.
Window.InsertCode("1"); // Something to select.
Task.Run(() => Window.Operations.SelectAll()).PumpingWait();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册