OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <head> |
| 3 <script src="/js-test-resources/js-test.js"></script> |
| 4 <link rel="import" href="resources/no-encoding.cgi"> |
| 5 <link rel="import" href="resources/http-encoding.cgi"> |
| 6 </head> |
| 7 <body> |
| 8 <script> |
| 9 description("Test that UTF-8 decoding is applied appropriately to imports"); |
| 10 jsTestIsAsync = true; |
| 11 window.onload = function() { |
| 12 links = document.querySelectorAll('link[rel=import]'); |
| 13 debug("Default encoding should be UTF-8..."); |
| 14 shouldBeEqualToString("links[0].import.characterSet", "UTF-8"); |
| 15 debug("And Content-Type headers should be ignored..."); |
| 16 shouldBeEqualToString("links[1].import.characterSet", "UTF-8"); |
| 17 finishJSTest(); |
| 18 }; |
| 19 </script> |
| 20 </body> |
OLD | NEW |