OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 </head> |
| 5 <body> |
| 6 <script> |
| 7 if (window.layoutTestController) { |
| 8 layoutTestController.dumpAsText(); |
| 9 } |
| 10 |
| 11 var mime_types = ["application/atom+xml", "application/json", |
| 12 "application/javascript", "application/rss+xml", "text/", |
| 13 "text/cache-manifest", "text/css", "text/ecmascript", |
| 14 "text/javascript", "text/javascript1.1", "text/javascript1.2", |
| 15 "text/javascript1.3", "text/jscript", "text/livescript", |
| 16 "text/plain", "text/vnd.chromium.ftp-dir"]; |
| 17 |
| 18 for(var i in mime_types) { |
| 19 var ifr = document.createElement('iframe'); |
| 20 ifr.src = "http://localhost:8000/security/resources/send-mime-types.php?mt=" +
escape(mime_types[i]); |
| 21 document.body.appendChild(ifr); |
| 22 } |
| 23 </script> |
| 24 <p>Test non-image and javascript mime types are not rendered as HTML.</p> |
| 25 </body> |
| 26 </html> |
OLD | NEW |