diff options
author | Iain Merrick <husky@google.com> | 2010-09-29 10:59:30 +0100 |
---|---|---|
committer | Iain Merrick <husky@google.com> | 2010-09-29 16:27:50 +0100 |
commit | fd5c6425ce58eb75211be7718d5dee960842a37e (patch) | |
tree | fdcd1da6ceced587fa315991889655ca4105efb1 /LayoutTests/fast/encoding/script-in-head.html | |
parent | a477fea25b6f689360fd2b6a69ee21c3627d3b04 (diff) | |
download | external_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/script-in-head.html')
-rw-r--r-- | LayoutTests/fast/encoding/script-in-head.html | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/LayoutTests/fast/encoding/script-in-head.html b/LayoutTests/fast/encoding/script-in-head.html new file mode 100644 index 0000000..d6dc1ca --- /dev/null +++ b/LayoutTests/fast/encoding/script-in-head.html @@ -0,0 +1,30 @@ +<!-- temp --><script language="JavaScript" type="text/JavaScript"> +if (window.layoutTestController) { + layoutTestController.dumpAsText(); + layoutTestController.waitUntilDone(); +} +document.write ('<SCR' + 'IPT>' + + + 'setTimeout(function () {' + + <!-- The letters CCE below are Cyrillic, so we do test that the encoding is correct. --> + <!-- We also take an opportunity to test that this weirdly located script actually executes. --> + 'document.getElementById("result").innerHTML="SUóóåSS";' + + 'if (window.layoutTestController)' + + 'layoutTestController.notifyDone();' + + '}, 0);' + +'</SCR' + 'IPT>');document.close(); </script> +<!-- /temp --><!--HEADER--> + +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" +"http://www.w3.org/TR/html4/loose.dtd"> +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=koi8-r"> +</head> +<body> +<p>Test for <a href="http://bugs.webkit.org/show_bug.cgi?id=12165">bug 12165</a>: +text encoding problem at jn.sapo.pt</p> +<p>Should see a success message below.</p> +<div id="result"></div> +</body> +</html> |