These are the two tracks:
"They're trying to own basic building blocks of music, the alphabet of music that should be available to everyone," Perry's lawyer Christine Lepera said during closing arguments last week.
Perry and the song's co-authors, including her producer Dr Luke, testified during the seven-day trial that none of them had heard the song or heard of Gray before the lawsuit, nor did they listen to Christian music.
Gray's lawyers had only to demonstrate, however, that Joyful Noise had wide dissemination and could have been heard by Perry and her co-authors, and provide as evidence that it had millions of plays on YouTube and Spotify, and that the album it's included on was nominated for a Grammy.
"They're trying to shove Mr Gray into some gospel music alleyway that no one ever visits," said plaintiffs' lawyer Michael A. Kahn during closing arguments, when he also pointed out that Perry had begun her career as a Christian artist.
Kahn and Gray declined comment but smiled as they left the courtroom after the verdict.
The 34-year-old pop superstar and American Idol judge brought laughs to the proceedings when she testified during its second day, and her lawyers were having technical troubles getting Dark Horse to play in the courtroom.
"I could perform it live," Perry said.
No performance was necessary after the audio issues were fixed.
Jurors heard both songs played back-to-back in their entirety at the end of closing arguments this week.
Perry was not present for the reading of the verdict.