| Index: LayoutTests/fast/html/imports/encoding.html
|
| diff --git a/LayoutTests/fast/html/imports/encoding.html b/LayoutTests/fast/html/imports/encoding.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8a235419b29a7fa046cf4ac17163787672f8d7e8
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/html/imports/encoding.html
|
| @@ -0,0 +1,21 @@
|
| +<!DOCTYPE html>
|
| +<head>
|
| + <script src="../../../resources/js-test.js"></script>
|
| + <link rel="import" href="resources/no-encoding.html">
|
| + <link rel="import" href="resources/meta-encoding.html">
|
| +</head>
|
| +<body>
|
| +<script>
|
| +jsTestIsAsync = true;
|
| +window.onload = function() {
|
| + description("Test that UTF-8 decoding is applied appropriately to imports");
|
| +
|
| + links = document.querySelectorAll('link[rel=import]');
|
| + debug("Default encoding should be UTF-8...");
|
| + shouldBeEqualToString("links[0].import.characterSet", "UTF-8");
|
| + debug("And a meta tag should not override it...");
|
| + shouldBeEqualToString("links[1].import.characterSet", "UTF-8");
|
| + finishJSTest();
|
| +};
|
| +</script>
|
| +</body>
|
|
|