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/css-cached-bom.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/css-cached-bom.html')
-rw-r--r-- | LayoutTests/fast/encoding/css-cached-bom.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/LayoutTests/fast/encoding/css-cached-bom.html b/LayoutTests/fast/encoding/css-cached-bom.html new file mode 100644 index 0000000..a6e75eb --- /dev/null +++ b/LayoutTests/fast/encoding/css-cached-bom.html @@ -0,0 +1,20 @@ +<script> +if (window.layoutTestController) { + layoutTestController.dumpAsText(); + layoutTestController.waitUntilDone(); +} +function frameLoaded() { + if (document.getElementById('f').contentDocument.styleSheets[0].cssRules[0].selectorText == "#success::before") + document.getElementById('result').innerHTML = "SUCCESS"; + if (window.layoutTestController) + layoutTestController.notifyDone(); +} +</script> +<link rel=stylesheet href=resources/utf-16-little-endian.css> +<!-- This halts the parsing until stylesheet has been loaded --> +<script src=does_not_exists.js></script> +<div>Test that stylesheet with BOM is correctly parsed when loaded from cache. You should see word SUCCESS below.</div> +<!-- Load the stylesheet to a different frame. This will use a cached copy of the stylesheet. --> +<iframe id=f src=resources/css-cached-bom-frame.html></iframe> +<div id=result>FAIL</div> + |