Skip to content

Commit

Permalink
Fix a t.assert_unreached typo in a CSP test helper
Browse files Browse the repository at this point in the history
Found via #10877 (comment).
  • Loading branch information
foolip committed Aug 3, 2018
1 parent 1413fe6 commit a5dd140
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 a5dd140

Please sign in to comment.