summaryrefslogtreecommitdiffstats
path: root/LayoutTests/fast/encoding/pseudo-xml-3.html
diff options
context:
space:
mode:
authorIain Merrick <husky@google.com>2010-09-29 10:59:30 +0100
committerIain Merrick <husky@google.com>2010-09-29 16:27:50 +0100
commitfd5c6425ce58eb75211be7718d5dee960842a37e (patch)
treefdcd1da6ceced587fa315991889655ca4105efb1 /LayoutTests/fast/encoding/pseudo-xml-3.html
parenta477fea25b6f689360fd2b6a69ee21c3627d3b04 (diff)
downloadexternal_webkit-fd5c6425ce58eb75211be7718d5dee960842a37e.zip
external_webkit-fd5c6425ce58eb75211be7718d5dee960842a37e.tar.gz
external_webkit-fd5c6425ce58eb75211be7718d5dee960842a37e.tar.bz2
Add fast/encoding layout tests.
Merged from WebKit at r67178. The vast majority of these are passing. The exceptions: - Three Mac-specific tests, won't fix. - Four failures in the Java HTTP stack (no problem for the Chrome HTTP stack). - fast/encoding/mailto-always-utf-8 needs a new LayoutTestController callback. Change-Id: I16c613d42acd0ea2dc146909d514376d0a2e5aaa
Diffstat (limited to 'LayoutTests/fast/encoding/pseudo-xml-3.html')
-rw-r--r--LayoutTests/fast/encoding/pseudo-xml-3.html23
1 files changed, 23 insertions, 0 deletions
diff --git a/LayoutTests/fast/encoding/pseudo-xml-3.html b/LayoutTests/fast/encoding/pseudo-xml-3.html
new file mode 100644
index 0000000..486d01e
--- /dev/null
+++ b/LayoutTests/fast/encoding/pseudo-xml-3.html
@@ -0,0 +1,23 @@
+<?xml version="1.0"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta content="text/html; charset=KOI8-R" http-equiv="Content-Type"/>
+</head>
+<body>
+<p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=9783">bug 9783</a>:
+An XML declaration without an explicit encoding incorrectly triggers UTF-8 encoding in an HTML document</p>
+
+<p id="result" />
+
+<script>
+if (window.layoutTestController)
+ layoutTestController.dumpAsText();
+
+document.getElementById("result").innerHTML = "Charset: " +
+ (document.charset ? document.charset : document.characterSet) + " (should be KOI8-R)";
+</script>
+
+</body>
+</html>