Index: third_party/WebKit/LayoutTests/external/wpt/content-security-policy/blink-contrib/resources/worker-set-timeout.js |
diff --git a/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/blink-contrib/resources/worker-set-timeout.js b/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/blink-contrib/resources/worker-set-timeout.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a16827eddfc8b214f674614de1cc2b9d10009141 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/blink-contrib/resources/worker-set-timeout.js |
@@ -0,0 +1,5 @@ |
+var id = 0; |
+try { |
+ id = setTimeout("postMessage('handler invoked')", 100); |
+} catch (e) {} |
+postMessage(id === 0 ? "setTimeout blocked" : "setTimeout allowed"); |