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