Skip to content

Commit 167ff7c

Browse files
committed
Nevermind, this is the real test
1 parent 5d05e95 commit 167ff7c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/cascadia/UnitTests_Control/ControlInteractivityTests.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,7 @@ namespace ControlUnitTests
348348
const til::size fontSize{ 9, 21 };
349349

350350
Log::Comment(L"Click on the terminal");
351-
const til::point terminalPosition0{ 6, 0 };
352-
const til::point cursorPosition0 = terminalPosition0 * fontSize;
351+
const til::point cursorPosition0{ 6, 0 };
353352
interactivity->PointerPressed(leftMouseDown,
354353
WM_LBUTTONDOWN, //pointerUpdateKind
355354
0, // timestamp
@@ -359,6 +358,9 @@ namespace ControlUnitTests
359358
Log::Comment(L"Verify that there's not yet a selection");
360359
VERIFY_IS_FALSE(core->HasSelection());
361360

361+
VERIFY_IS_TRUE(interactivity->_singleClickTouchdownPos.has_value());
362+
VERIFY_ARE_EQUAL(cursorPosition0, interactivity->_singleClickTouchdownPos.value());
363+
362364
Log::Comment(L"Drag the mouse a lot. This simulates draging the mouse real fast.");
363365
const til::point cursorPosition1{ 6 + fontSize.width<int>() * 2, 0 };
364366
interactivity->PointerMoved(leftMouseDown,

0 commit comments

Comments
 (0)