Check that a SecurityPolicyViolationEvent is fired upon blocking an image injected via script.