OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <meta http-equiv="Content-Security-Policy" content="img-src 'self'"> | 4 <meta http-equiv="Content-Security-Policy" content="img-src 'self'"> |
5 <script src="../js/resources/js-test-pre.js"></script> | 5 <script src="../../resources/js-test.js"></script> |
6 <script> | 6 <script> |
7 description( | 7 description( |
8 "This tests onerror event is fired if we change image src to a url blocked b
y content-security-policy." | 8 "This tests onerror event is fired if we change image src to a url blocked b
y content-security-policy." |
9 ) | 9 ) |
10 | 10 |
11 jsTestIsAsync = true; | 11 jsTestIsAsync = true; |
12 | 12 |
13 function load() | 13 function load() |
14 { | 14 { |
15 var image = document.getElementById('test'); | 15 var image = document.getElementById('test'); |
(...skipping 10 matching lines...) Expand all Loading... |
26 } | 26 } |
27 </script> | 27 </script> |
28 | 28 |
29 </head> | 29 </head> |
30 <body onload='load()'> | 30 <body onload='load()'> |
31 | 31 |
32 <img src="./color-jpeg-with-color-profile-expected.png" id="test"></img> | 32 <img src="./color-jpeg-with-color-profile-expected.png" id="test"></img> |
33 | 33 |
34 </body> | 34 </body> |
35 </html> | 35 </html> |
OLD | NEW |