Commit e170e1ef authored by Alex Moshchuk's avatar Alex Moshchuk Committed by Commit Bot

Fix incorrect unreachable_func in CSP layout tests.

Credit goes to nick@ for spotting it in
https://chromium-review.googlesource.com/c/chromium/src/+/999182

Change-Id: I278234762e4ca8ced592c0b63636c6dc6b981e6f
Reviewed-on: https://chromium-review.googlesource.com/1010473Reviewed-by: default avatarNick Carter <nick@chromium.org>
Commit-Queue: Nick Carter <nick@chromium.org>
Cr-Commit-Position: refs/heads/master@{#552077}
parent 5d52cbf9
......@@ -118,7 +118,7 @@ function assert_iframe_with_csp(t, url, csp, shouldBlock, urlId, blockedURI) {
window.onmessage = function (e) {
if (e.source != i.contentWindow)
return;
t.unreached_func('No message should be sent from the frame.');
t.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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment