PULLMAN, Wash. -- Coach Chip Kelly says he never lost faith in his UCLA team, even as it lost its first three games.
Kelly said the Bruins played hard all 12 quarters of those losses, and that paid dividends when they fell behind at No. 19 Washington State on Saturday.
"I always thought we were a good football team," Kelly said. "if we could be consistent."
He added, "When you are battle-tested like our guys are, I think that showed up today."
The Bruins overcame a record nine TD passes by Washington State's Anthony Gordon.
After Felton's TD, Gordon was sacked and fumbled -- the team's sixth turnover of the game -- on the next possession with about a minute remaining, and UCLA recovered and ran out the clock.
Thompson-Robinson threw for 507 yards and five touchdowns for UCLA (1-3, 1-0 Pac-12).
Gordon threw for 570 yards and broke the school record with nine TD passes for Washington State (3-1, 0-1). Jacksonville Jaguars starting QB Gardner Minshew II, a sixth-round draft pick who was on the WSU sideline for Saturday's game, held theschool record of seven TD passes in a game, set in November 2018 against Arizona.
Easop Winston Jr. was Gordon's favorite target. He caught four touchdown passes for Washington State.
Washington State jumped to a 35-17 lead at halftime and pushed that to 49-17 early in the third quarter.
But UCLA, which failed to score more than 14 points in each of its three losses, stormed back, erupting for three touchdowns in the final four minutes of the third. That was part of a run of seven touchdowns in eight possessions, many fueled by WSU turnovers.
Thompson-Robinson ran for one touchdown and threw scoring passes to Chase Cota and Felton to bring the Bruins within 49-38.
In the fourth, Thompson-Robinson hit Devin Asiasi with a 7-yard touchdown pass and then found Cota for a two-point conversion pass to bring UCLA within 49-46 with 14:28 left in the game.
Gordon broke the WSU touchdown record with his eighth, a 33-yarder to Winston, for a 56-46 lead with 10:08 left.
Thompson-Robinson ran over from the 3 to cut WSU's lead to 56-53 with 8:10 left.
Washington State was forced to punt, and Kyle Philips returned it 69 yards for a touchdown, putting the Bruins ahead 60-56 with 7:31 left.
But Max Borghi caught a short pass from Gordon and ran 65 yards for a touchdown and a 63-60 lead with 6:11 left. That set the stage for the winning touchdown.
"The football is a really odd-shaped ball, and it bounces different ways sometimes," Kelly said. "Fortunately for us, it bounced our way tonight. That's great, but that doesn't mean we kick up our feet and stop working."
Washington State pointed to its six turnovers.
"We kept shooting ourselves in the foot," Gordon said. "It's hard to win any sort of football game when you turn the ball over six times."
"I thought they did a good job of attacking the ball," Washington State coach Mike Leach said of UCLA. "I thought we had lousy ball security."
Leach said his team lost its edge in the second half.
"Our guys got frantic and panicked," Leach said. "We collapsed in every phase of the game."
Gordon replied by finding Winston with a 4-yard touchdown pass.
The Bruins replied with a 31-yard field goal by JJ Molson for a 10-7 lead.
Washington State scored four touchdowns in the second quarter, beginning with Gordon's 28-yard pass to Winston, to take control.
Gordon found Travell Harris for a 10-yard touchdown pass and a 21-10 lead.
Felton returned the ensuing kickoff 100 yards for a touchdown as the Bruins pulled within 21-17.
Gordon replied with short touchdown passes to Winston and Tay Martin for a 35-17 lead that stood at halftime.
UCLA had 657 yards of total offense, compared to 720 yards for Washington State.
Washington State's Max Borghi rushed for 123 yards and caught two passes for 80 yards.
Felton caught seven passes for 150 yards and two touchdowns for UCLA.
"Demetric Felton is a special player. He is continuing to grow," Kelly said.
UCLA: The Bruins came in as the only Pac-12 team averaging fewer than 300 yards of offense per game (263), but they finally put some points on the scoreboard.
Washington State: The Cougars could not stop the Bruins in the second half and were hurt with six turnovers that led to 29 points.
Washington State will likely drop in the poll.
UCLA plays at Arizona on Saturday.
Washington State has a showdown on Saturday at No. 10 Utah.
Chattanooga QB Nick Tiano named MVP after leading National past American in Collegiate Bowl
Chattanooga quarterback Nick Tiano, who was 8-of-10 passing for 135 yards and a touchdown, led the National team over the American 30-20 in the NFLPA Collegiate Bowl Saturday in California.
James Morgan, Benny LeMay lead East over West in Shrine Bowl
Florida International's James Morgan, Charlotte's Benny LeMay and Navy's Malcolm Perry led the way as the East beat the West in the Shrine Bowl on Saturday.
Clemson LB Isaiah Simmons declares for 2020 NFL draft
Isaiah Simmons led the Tigers with 107 total tackles, eight sacks and 16 tackles for a loss last season.
Ex-Texas Tech QB Jett Duffey transferring to Central Michigan
Jett Duffey, who started the final eight games of the 2019 season for Texas Tech, confirmed to ESPN that he will transfer to Central Michigan.
Burrow ready to be drafted by 'whoever wants to pay me'
Joe Burrow still enjoying the aftermath of winning the College Football Playoff, but he'll be ready to play on Sundays in the NFL.
Thousands celebrate LSU's CFP title during parade and rally
Thousands of LSU fans wearing purple and gold lined streets near Tiger Stadium and packed a basketball arena for a parade on Saturday honoring the football team's national championship season.