Skip to content

Commit

Permalink
Fix a t.assert_unreached typo in a CSP test helper (#12303)
Browse files Browse the repository at this point in the history
Found via #10877 (comment).
  • Loading branch information
foolip authored Aug 6, 2018
1 parent aafc251 commit 64a9cbb
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,11 @@ function assert_iframe_with_csp(t, url, csp, shouldBlock, urlId, blockedURI) {

if (shouldBlock) {
// Assert iframe does not load and is inaccessible.
window.onmessage = function (e) {
window.onmessage = t.step_func(function(e) {
if (e.source != i.contentWindow)
return;
t.assert_unreached('No message should be sent from the frame.');
}
assert_unreached('No message should be sent from the frame.');
});
i.onload = t.step_func(function () {
// Delay the check until after the postMessage has a chance to execute.
setTimeout(t.step_func_done(function () {
Expand Down

0 comments on commit 64a9cbb

Please sign in to comment.