TORONTO - Justin Smoak tied the game with a two-run homer in the ninth, and Kendrys Morales followed with a solo shot as the Toronto Blue Jays rallied for a 3-2 walkoff win over the Oakland Athletics on Wednesday.

Josh Donaldson started the rally with a leadoff walk off Santiago Casilla (2-5). Casilla then allowed the back-to-back homers, spoiling a stellar start from Oakland's rookie right-hander Paul Blackburn.

It was the sixth time this season the Blue Jays had hit back-to-back homers. They improved to 47-54 with their third straight win and can sweep the four-game series with a victory Thursday afternoon.

Marco Estrada, in what could be his last outing as a Blue Jay, failed to earn a win for the 10th straight start despite a strong pitching performance.

The pending free agent, who could be moved before next Monday's non-waiver trade deadline, pitched five full innings for the first time since June 24 (a string of five starts), allowing only two runs and three hits while walking four and striking out four.

Estrada came into the game with losses in five straight decisions for the first time since 2012. He had never lost six straight.