summaryrefslogtreecommitdiffstats
path: root/LayoutTests/fast/encoding/no-charset-on-dynamic-script-load.html
diff options
context:
space:
mode:
Diffstat (limited to 'LayoutTests/fast/encoding/no-charset-on-dynamic-script-load.html')
-rw-r--r--LayoutTests/fast/encoding/no-charset-on-dynamic-script-load.html22
1 files changed, 22 insertions, 0 deletions
diff --git a/LayoutTests/fast/encoding/no-charset-on-dynamic-script-load.html b/LayoutTests/fast/encoding/no-charset-on-dynamic-script-load.html
new file mode 100644
index 0000000..363c261
--- /dev/null
+++ b/LayoutTests/fast/encoding/no-charset-on-dynamic-script-load.html
@@ -0,0 +1,22 @@
+<html>
+ <head>
+ <title>Encoding test.</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ </head>
+ <body>
+ This page tests that the character encoding is used for dynamically loaded
+ scripts when no charset is specified directly or provided by the server.
+
+ <div id="target"></div>
+ <script>
+ if (window.layoutTestController) {
+ window.layoutTestController.waitUntilDone();
+ window.layoutTestController.dumpAsText();
+ }
+ tokyo = 'とうきょう';
+ oDIVResults=document.createElement('script');
+ oDIVResults.src="resources/dynamic-load-target.js";
+ document.getElementsByTagName("head").item(0).appendChild(oDIVResults);
+ </script>
+ </body>
+</html>