OLD | NEW |
---|---|
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <meta http-equiv="Content-Security-Policy-Report-Only" content="script-src ' self'"> | 4 <meta http-equiv="Content-Security-Policy-Report-Only" content="script-src ' self' 'unsafe-inline'"> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <script> | 7 <script> |
8 if (window.testRunner) | 8 if (window.testRunner) |
9 testRunner.dumpAsText(); | 9 testRunner.dumpAsText(); |
10 | 10 |
11 eval("alert('PASS: eval() executed as expected.');"); | 11 try { |
12 eval("alert('PASS: eval() executed as expected.');"); | |
13 } catch(e) { | |
14 alert("FAIL: eval() threw an exception."); | |
15 } | |
12 </script> | 16 </script> |
13 </body> | 17 </body> |
14 </html> | 18 </html> |
OLD | NEW |