British number one Johanna Konta passed a major test before Wimbledon as she edged past French Open champion Jelena Ostapenko in Eastbourne.
World number seven Konta, 26, won 7-5 3-6 6-4 against her 20-year-old Latvian opponent, a surprise victor at Roland Garros earlier this month.
Konta, the fifth seed, will play world number one Angelique Kerber in the quarter-finals later on Thursday.
Compatriot Heather Watson reached the last eight with a straight-set win.
The British number three, ranked 126th in the world, won 6-4 6-3 against Russian 14th seed Anastasia Pavlyuchenkova.