File tree Expand file tree Collapse file tree
src/cascadia/UnitTests_Control Expand file tree Collapse file tree Original file line number Diff line number Diff 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,
You can’t perform that action at this time.
0 commit comments