'dramatic irony' definitions:

Definition of 'dramatic irony'

(from WordNet)
noun
(theater) irony that occurs when the meaning of the situation is understood by the audience but not by the characters in the play