diff --git a/widget/entry_internal_test.go b/widget/entry_internal_test.go index db56c05fc4..50fc43268d 100644 --- a/widget/entry_internal_test.go +++ b/widget/entry_internal_test.go @@ -42,12 +42,16 @@ func TestEntry_DoubleTapped(t *testing.T) { entry.DoubleTapped(ev) assert.Equal(t, "quick", entry.SelectedText()) + entry.doubleTappedAtUnixMillis = 0 // make sure we don't register a triple tap next + // select the whitespace after 'quick' ev = getClickPosition("The quick", 0) clickPrimary(entry, ev) entry.DoubleTapped(ev) assert.Equal(t, " ", entry.SelectedText()) + entry.doubleTappedAtUnixMillis = 0 + // select all whitespace after 'jumped' ev = getClickPosition("jumped ", 1) clickPrimary(entry, ev)