Skip to content

Commit

Permalink
Bug 1480903 [wpt PR 12303] - Fix a t.assert_unreached typo in a CSP t…
Browse files Browse the repository at this point in the history
…est helper, a=testonly

Automatic update from web-platform-testsFix a t.assert_unreached typo in a CSP test helper (#12303)

Found via web-platform-tests/wpt#10877 (comment).
--

wpt-commits: 64a9cbb9aec8db0f84c076ae77045297fe8ea320
wpt-pr: 12303

UltraBlame original commit: 46cd6f41717a3d07bed82676d6a6c1fb17995e74
  • Loading branch information
marco-c committed Oct 3, 2019
1 parent d47bda4 commit 806f496
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion testing/web-platform/meta/MANIFEST.json
Original file line number Diff line number Diff line change
Expand Up @@ -449293,7 +449293,7 @@
"support"
],
"content-security-policy/embedded-enforcement/support/testharness-helper.sub.js": [
"6d2e64f8f7e9026719e84c8fd1c09dd27c8d03b5",
"c1b2e673eced75db5bb3b47abcfef56bff62e465",
"support"
],
"content-security-policy/font-src/font-match-allowed.sub.html": [
Expand Down
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) {

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 () {

setTimeout(t.step_func_done(function () {
Expand Down

0 comments on commit 806f496

Please sign in to comment.