Update web-platform-tests to revision 14cfa4d648cc1c853b4153268df672d21425f8c1

This commit is contained in:
Josh Matthews 2017-10-30 09:31:22 -04:00
parent 1b73cf3352
commit 75736751d9
1213 changed files with 19434 additions and 12344 deletions

View file

@ -0,0 +1,5 @@
document.write("<script>log('Pass 1 of 2');</script>");
var s = document.createElement('script');
s.textContent = "log('Pass 2 of 2');";
document.body.appendChild(s);

View file

@ -0,0 +1 @@
postMessage("importScripts allowed");

View file

@ -0,0 +1,5 @@
var id = 0;
try {
id = eval("1 + 2 + 3");
} catch (e) {}
postMessage(id === 0 ? "eval blocked" : "eval allowed");

View file

@ -0,0 +1 @@
Content-Security-Policy: script-src 'unsafe-inline'

View file

@ -0,0 +1,7 @@
var fn = function() {
postMessage('Function() function blocked');
}
try {
fn = new Function("", "postMessage('Function() function allowed');");
} catch (e) {}
fn();

View file

@ -0,0 +1 @@
Content-Security-Policy: script-src 'unsafe-inline'

View file

@ -0,0 +1,6 @@
try {
importScripts("/content-security-policy/support/post-message.js");
postMessage("importScripts allowed");
} catch (e) {
postMessage("importScripts blocked");
}

View file

@ -0,0 +1 @@
Content-Security-Policy: script-src 'none'

View file

@ -0,0 +1,5 @@
var id = 0;
try {
id = setTimeout("postMessage('handler invoked')", 100);
} catch (e) {}
postMessage(id === 0 ? "setTimeout blocked" : "setTimeout allowed");

View file

@ -0,0 +1 @@
Content-Security-Policy: script-src 'none'