Skip to content

Commit

Permalink
test: fix CSP test for FF
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
mnater committed Jan 3, 2023
1 parent 194f6ec commit a00302b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions testsuite/test46.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
if (msg) {
if (
msg.indexOf("WebAssembly.instantiateStreaming()") === 0 ||
msg.indexOf("Refused to create a WebAssembly object") === 0
msg.indexOf("Refused to create a WebAssembly object") === 0 ||
msg.indexOf("call to WebAssembly.instantiateStreaming() blocked by CSP") === 0
) {
result = true;
}
Expand Down Expand Up @@ -98,7 +99,7 @@ <h1>Test 046</h1>
<p id="desc">Check CSP handling</p>
<div id="result"></div>
<hr>
<h2>CSP Error (in webkit and chrome, but not in FF)</h2>
<h2>CSP Error</h2>
<div id="errorlog">no error</div>
<p id="test" class="test hyphenate" lang="en-us">hyphenation</p>
<p id="ref" class="ref" lang="en-us">hy•phen•ation</p>
Expand Down

0 comments on commit a00302b

Please sign in to comment.