Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/content-security-policy/script-src/script-src-1_4_2.html

Issue 2704543002: Import wpt@3bd204d7e86fd81e98e63f4ce59b95d98bad1c54 (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <title>Function() called as a constructor should throw without 'unsafe-eval' script-src directive.</title>
5 <script src='/resources/testharness.js'></script>
6 <script src='/resources/testharnessreport.js'></script>
7 </head>
8 <body>
9 <h1>Function() called as a constructor should throw without 'unsafe-eval' sc ript-src directive.</h1>
10 <div id='log'></div>
11
12 <script>
13
14 test(function() {
15 assert_throws(
16 new EvalError(),
17 function() {
18 var funq = new Function('');
19 funq();
20 })}, "Unsafe eval ran in Function() constructor.");
21
22 </script>
23
24 <script async defer src='../support/checkReport.sub.js?reportField=violated- directive&reportValue=script-src%20%27self%27+%27unsafe-inline%27'></script>
25
26 </body>
27 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698