Dramatic Irony occurs when...

*

an unexpected surprise or twist is experienced in the plot.
a character says one thing, but actually means something else.
we, the audience, along with one or just a few other characters, know something that no other characters know
non-human objects or animals are given human characteristics

and the audience knows this, but the characters do not.