blob: 319c87b0f8a6723ffcdf0cad9308915f6d6eb10c [file] [log] [blame]
import { waitForOneSecurityPolicyViolationEvent, waitForImgFail } from "./helper.mjs";
promise_test(() => {
const imgURL = (new URL("/common/security-features/subresource/image.py", document.location)).href;
return Promise.all([
waitForOneSecurityPolicyViolationEvent(imgURL).then(blockedURI => {
assert_equals(blockedURI, imgURL);
}),
waitForImgFail(imgURL)
]);
});