OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
| 4 <script src="resources/report-test.js"></script> |
4 <meta http-equiv="Content-Security-Policy" content="img-src 'none'; report-u
ri resources/save-report.php"> | 5 <meta http-equiv="Content-Security-Policy" content="img-src 'none'; report-u
ri resources/save-report.php"> |
5 </head> | 6 </head> |
6 <body> | 7 <body> |
7 <script> | 8 <script> |
8 testRunner.addOriginAccessWhitelistEntry('http://127.0.0.1:8000', 'file'
, '', true); | 9 testRunner.addOriginAccessWhitelistEntry('http://127.0.0.1:8000', 'file'
, '', true); |
9 var localImageLocation = testRunner.pathToLocalResource('file:///tmp/Lay
outTests/http/tests/security/resources/compass.jpg'); | 10 var localImageLocation = testRunner.pathToLocalResource('file:///tmp/Lay
outTests/http/tests/security/resources/compass.jpg'); |
10 | 11 |
11 var localImageElement = document.createElement('img'); | 12 var localImageElement = document.createElement('img'); |
12 localImageElement.src = localImageLocation; | 13 localImageElement.src = localImageLocation; |
13 document.body.appendChild(localImageElement); | 14 document.body.appendChild(localImageElement); |
14 </script> | 15 </script> |
15 <script src="resources/go-to-echo-report.js"></script> | 16 <script src="resources/go-to-echo-report.js"></script> |
16 </body> | 17 </body> |
17 </html> | 18 </html> |
OLD | NEW |