Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/external/wpt/content-security-policy/script-src/inlineSuccessTest.js |
| diff --git a/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/script-src/inlineSuccessTest.js b/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/script-src/inlineSuccessTest.js |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..ea2be272a206befad0de7e2e35614a78561bacd9 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/script-src/inlineSuccessTest.js |
| @@ -0,0 +1,8 @@ |
| +var inlineRan = false; |
| + |
| +onload = function() { |
| + test(function() { |
| + assert_true(inlineRan, 'Unsafe inline script ran.')}, |
| + 'Inline script in a script tag should run with an unsafe-inline directive' |
| + ); |
| +} |