Skip to content

Commit

Permalink
Bug 1480905 [wpt PR 12305] - Wrap an assert in step_func in a CSP tes…
Browse files Browse the repository at this point in the history
…t, a=testonly

Automatic update from web-platform-testsWrap an assert in step_func in a CSP test (#12305)

Previously, this test caused a harness error in Firefox and Safari, now
the test itself fails correctly instead.

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

wpt-commits: 590992ecaa850723c3300417912a874d94295444
wpt-pr: 12305
  • Loading branch information
foolip authored and moz-wptsync-bot committed Aug 14, 2018
1 parent 2937cff commit 5990bdd
Show file tree
Hide file tree
Showing 2 changed files with 3 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 @@ -452784,7 +452784,7 @@
"testharness"
],
"content-security-policy/unsafe-hashes/style_attribute_allowed.html": [
"69657efda7e158179aad8ab5688e56e344a9b05d",
"568c469b063c0faaed83cf9551b56a3bf7d2b3d9",
"testharness"
],
"content-security-policy/unsafe-hashes/style_attribute_denied_missing_unsafe_hashes.html": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@
<script>
var t1 = async_test("Test that the inline style attribute is loaded");

function check_for_style() {
self.check_for_style = t1.step_func_done(function() {
assert_equals("green", document.getElementById('test').style.background);
t1.done();
}
});

window.addEventListener('securitypolicyviolation', t1.unreached_func("Should have not raised any event"));
</script>
Expand Down

0 comments on commit 5990bdd

Please sign in to comment.