From fd5c6425ce58eb75211be7718d5dee960842a37e Mon Sep 17 00:00:00 2001 From: Iain Merrick Date: Wed, 29 Sep 2010 10:59:30 +0100 Subject: 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 --- LayoutTests/fast/encoding/GBK/EUC-CN-expected.txt | 5 + LayoutTests/fast/encoding/GBK/EUC-CN.html | 10 + LayoutTests/fast/encoding/GBK/chinese-expected.txt | 5 + LayoutTests/fast/encoding/GBK/chinese.html | 10 + .../encoding/GBK/close-gbk-converter-expected.txt | 3 + .../fast/encoding/GBK/close-gbk-converter.html | 22 ++ LayoutTests/fast/encoding/GBK/cn-gb-expected.txt | 5 + LayoutTests/fast/encoding/GBK/cn-gb.html | 10 + .../fast/encoding/GBK/csgb2312-expected.txt | 5 + LayoutTests/fast/encoding/GBK/csgb2312.html | 10 + .../fast/encoding/GBK/csgb231280-expected.txt | 5 + LayoutTests/fast/encoding/GBK/csgb231280.html | 10 + LayoutTests/fast/encoding/GBK/gb2312-expected.txt | 5 + LayoutTests/fast/encoding/GBK/gb2312.html | 10 + .../fast/encoding/GBK/gb_2312-80-expected.txt | 5 + LayoutTests/fast/encoding/GBK/gb_2312-80.html | 10 + LayoutTests/fast/encoding/GBK/gbk-expected.txt | 5 + LayoutTests/fast/encoding/GBK/gbk.html | 10 + .../fast/encoding/GBK/iso-ir-58-expected.txt | 5 + LayoutTests/fast/encoding/GBK/iso-ir-58.html | 10 + .../fast/encoding/GBK/x-euc-cn-expected.txt | 5 + LayoutTests/fast/encoding/GBK/x-euc-cn.html | 10 + LayoutTests/fast/encoding/GBK/x-gbk-expected.txt | 5 + LayoutTests/fast/encoding/GBK/x-gbk.html | 10 + .../fast/encoding/ahram-org-eg-expected.txt | 3 + LayoutTests/fast/encoding/ahram-org-eg.html | 28 +++ .../encoding/bandai-co-jp-releases-expected.txt | 3 + .../fast/encoding/bandai-co-jp-releases.html | 21 ++ .../fast/encoding/bom-in-content-expected.txt | 4 + .../encoding/bom-in-content-utf16-expected.txt | 4 + .../fast/encoding/bom-in-content-utf16.html | Bin 0 -> 720 bytes LayoutTests/fast/encoding/bom-in-content.html | 14 ++ .../fast/encoding/char-decoding-expected.txt | 163 ++++++++++++ .../fast/encoding/char-decoding-mac-expected.txt | 19 ++ LayoutTests/fast/encoding/char-decoding-mac.html | 31 +++ LayoutTests/fast/encoding/char-decoding.html | 101 ++++++++ .../fast/encoding/char-encoding-expected.txt | 22 ++ .../fast/encoding/char-encoding-mac-expected.txt | 17 ++ LayoutTests/fast/encoding/char-encoding-mac.html | 42 ++++ LayoutTests/fast/encoding/char-encoding.html | 52 ++++ .../fast/encoding/charset-cp1251-expected.txt | 1 + LayoutTests/fast/encoding/charset-cp1251.html | 13 + .../fast/encoding/charset-invalid-expected.txt | 3 + LayoutTests/fast/encoding/charset-invalid.html | 15 ++ .../fast/encoding/charset-koi8-u-expected.txt | 3 + LayoutTests/fast/encoding/charset-koi8-u.html | 15 ++ .../fast/encoding/charset-unicode-expected.txt | 1 + LayoutTests/fast/encoding/charset-unicode.html | 9 + .../fast/encoding/charset-utf16-expected.txt | 1 + LayoutTests/fast/encoding/charset-utf16.html | 11 + .../encoding/charset-xuser-defined-expected.txt | 4 + .../fast/encoding/charset-xuser-defined.html | 17 ++ .../fast/encoding/css-cached-bom-expected.txt | 3 + LayoutTests/fast/encoding/css-cached-bom.html | 20 ++ .../fast/encoding/css-charset-default-expected.txt | 9 + .../fast/encoding/css-charset-default.xhtml | 43 ++++ .../fast/encoding/css-charset-dom-expected.txt | 7 + LayoutTests/fast/encoding/css-charset-dom.html | 32 +++ .../fast/encoding/css-charset-evil-expected.txt | 5 + LayoutTests/fast/encoding/css-charset-evil.css | 2 + LayoutTests/fast/encoding/css-charset-evil.html | 31 +++ LayoutTests/fast/encoding/css-charset-expected.txt | 5 + LayoutTests/fast/encoding/css-charset-import.css | 2 + .../encoding/css-charset-inherit-iso-8859-5.css | 2 + .../fast/encoding/css-charset-inherit-koi-8.css | 2 + LayoutTests/fast/encoding/css-charset.css | 2 + LayoutTests/fast/encoding/css-charset.html | 34 +++ .../fast/encoding/css-link-charset-expected.txt | 3 + LayoutTests/fast/encoding/css-link-charset.css | 1 + LayoutTests/fast/encoding/css-link-charset.html | 25 ++ .../encoding/decoder-allow-null-chars-expected.txt | 5 + .../fast/encoding/decoder-allow-null-chars.html | Bin 0 -> 383 bytes .../encoding/default-xhtml-encoding-expected.txt | 3 + .../fast/encoding/default-xhtml-encoding.xhtml | 16 ++ .../denormalised-voiced-japanese-chars.html | 15 ++ LayoutTests/fast/encoding/euckr-name-expected.txt | 6 + LayoutTests/fast/encoding/euckr-name.html | 18 ++ .../encoding/external-script-charset-expected.txt | 3 + .../fast/encoding/external-script-charset.js | 4 + .../fast/encoding/external-script-charset.xhtml | 7 + .../fast/encoding/floraexpress-ru-expected.txt | 3 + LayoutTests/fast/encoding/floraexpress-ru.html | 26 ++ .../fast/encoding/frame-default-enc-expected.txt | 1 + LayoutTests/fast/encoding/frame-default-enc.html | 27 ++ .../encoding/hanarei-blog32-fc2-com-expected.txt | 3 + .../fast/encoding/hanarei-blog32-fc2-com.html | 42 ++++ .../fast/encoding/hebrew/8859-8-e-expected.txt | 3 + LayoutTests/fast/encoding/hebrew/8859-8-e.html | 3 + .../fast/encoding/hebrew/8859-8-expected.txt | 3 + .../fast/encoding/hebrew/8859-8-i-expected.txt | 3 + LayoutTests/fast/encoding/hebrew/8859-8-i.html | 3 + LayoutTests/fast/encoding/hebrew/8859-8.html | 3 + .../fast/encoding/hebrew/csISO88598I-expected.txt | 3 + LayoutTests/fast/encoding/hebrew/csISO88598I.html | 3 + .../fast/encoding/hebrew/hebrew-expected.txt | 3 + LayoutTests/fast/encoding/hebrew/hebrew.html | 3 + .../fast/encoding/hebrew/iso-ir-138-expected.txt | 3 + LayoutTests/fast/encoding/hebrew/iso-ir-138.html | 3 + .../fast/encoding/hebrew/logical-expected.txt | 3 + LayoutTests/fast/encoding/hebrew/logical.html | 3 + .../fast/encoding/high-bit-latin1-expected.txt | 3 + LayoutTests/fast/encoding/high-bit-latin1.html | 18 ++ .../fast/encoding/idn-security-expected.txt | 247 ++++++++++++++++++ LayoutTests/fast/encoding/idn-security.html | 276 +++++++++++++++++++++ .../fast/encoding/invalid-UTF-8-2-expected.txt | 4 + LayoutTests/fast/encoding/invalid-UTF-8-2.html | 23 ++ LayoutTests/fast/encoding/invalid-UTF-8.html | 19 ++ ...nvalid-multi-byte-over-consumption-expected.txt | 4 + .../invalid-multi-byte-over-consumption.html | 34 +++ LayoutTests/fast/encoding/invalid-xml-expected.txt | 16 ++ LayoutTests/fast/encoding/invalid-xml.html | 12 + .../encoding/japanese-encoding-mix-expected.txt | 5 + .../fast/encoding/japanese-encoding-mix.html | 9 + .../fast/encoding/latin1-winlatin-expected.txt | 17 ++ LayoutTests/fast/encoding/latin1-winlatin.html | 15 ++ .../fast/encoding/mailto-always-utf-8-expected.txt | 4 + LayoutTests/fast/encoding/mailto-always-utf-8.html | 28 +++ .../fast/encoding/meta-charset-expected.txt | 3 + LayoutTests/fast/encoding/meta-charset.html | 14 ++ .../fast/encoding/meta-in-xhtml-expected.txt | 3 + LayoutTests/fast/encoding/meta-in-xhtml.xhtml | 23 ++ .../misplaced-xml-declaration-expected.txt | 1 + .../fast/encoding/misplaced-xml-declaration.html | 10 + .../fast/encoding/mispositioned-meta-expected.txt | 5 + LayoutTests/fast/encoding/mispositioned-meta.html | 22 ++ .../fast/encoding/namespace-tolerance-expected.txt | 5 + LayoutTests/fast/encoding/namespace-tolerance.html | 15 ++ .../no-charset-on-dynamic-script-load-expected.txt | 2 + .../no-charset-on-dynamic-script-load.html | 22 ++ .../fast/encoding/noscript-in-head-expected.txt | 7 + LayoutTests/fast/encoding/noscript-in-head.html | 17 ++ .../fast/encoding/percent-escaping-expected.txt | 3 + LayoutTests/fast/encoding/percent-escaping.html | 23 ++ .../fast/encoding/preload-encoding-expected.txt | 4 + LayoutTests/fast/encoding/preload-encoding.html | 47 ++++ .../pseudo-tags-in-attributes-expected.txt | 5 + .../fast/encoding/pseudo-tags-in-attributes.html | 20 ++ .../fast/encoding/pseudo-xml-2-expected.txt | 5 + LayoutTests/fast/encoding/pseudo-xml-2.html | 18 ++ .../fast/encoding/pseudo-xml-3-expected.txt | 3 + LayoutTests/fast/encoding/pseudo-xml-3.html | 23 ++ .../fast/encoding/pseudo-xml-4-expected.txt | 3 + LayoutTests/fast/encoding/pseudo-xml-4.html | 23 ++ LayoutTests/fast/encoding/pseudo-xml-expected.txt | 3 + LayoutTests/fast/encoding/pseudo-xml.html | 20 ++ .../resources/%25%u0435 0 %xx%%%ulike.html | 14 ++ .../fast/encoding/resources/char-decoding-utils.js | 34 +++ .../fast/encoding/resources/char-encoding-utils.js | 69 ++++++ .../encoding/resources/css-cached-bom-frame.html | 5 + LayoutTests/fast/encoding/resources/dummy.html | 0 .../fast/encoding/resources/dynamic-load-target.js | 9 + .../resources/frame-default-enc-frame.html | 17 ++ .../encoding/resources/invalid-xml-shift-jis.xml | 5 + .../fast/encoding/resources/invalid-xml-utf16.xml | Bin 0 -> 444 bytes .../fast/encoding/resources/invalid-xml-utf8.xml | 5 + .../encoding/resources/invalid-xml-x-mac-thai.xml | 5 + LayoutTests/fast/encoding/resources/invalid-xml.js | 43 ++++ .../fast/encoding/resources/preloaded-gb2312.css | 1 + .../fast/encoding/resources/preloaded-gb2312.js | 1 + .../fast/encoding/resources/preloaded-utf-8.css | 1 + .../fast/encoding/resources/preloaded-utf-8.js | 1 + .../encoding/resources/utf-16-little-endian.css | Bin 0 -> 84 bytes .../fast/encoding/resources/yentestexternal.js | 4 + .../fast/encoding/resources/yentestexternal2.js | 5 + .../fast/encoding/script-in-head-expected.txt | 5 + LayoutTests/fast/encoding/script-in-head.html | 30 +++ .../fast/encoding/tag-in-title-expected.txt | 5 + LayoutTests/fast/encoding/tag-in-title.html | 19 ++ .../encoding/url-host-name-non-ascii-expected.txt | 3 + .../fast/encoding/url-host-name-non-ascii.html | 13 + LayoutTests/fast/encoding/utf-16-big-endian.html | Bin 0 -> 13550 bytes .../fast/encoding/utf-16-little-endian.html | Bin 0 -> 13550 bytes LayoutTests/fast/encoding/utf-16-no-bom.xml | Bin 0 -> 236 bytes .../encoding/utf-32-big-endian-bom-expected.txt | 5 + .../fast/encoding/utf-32-big-endian-bom.html | Bin 0 -> 3120 bytes .../encoding/utf-32-big-endian-nobom-expected.txt | 5 + .../fast/encoding/utf-32-big-endian-nobom.xml | Bin 0 -> 3680 bytes .../encoding/utf-32-little-endian-bom-expected.txt | 5 + .../fast/encoding/utf-32-little-endian-bom.html | Bin 0 -> 3120 bytes .../utf-32-little-endian-nobom-expected.txt | 5 + .../fast/encoding/utf-32-little-endian-nobom.xml | Bin 0 -> 3680 bytes .../fast/encoding/xmacroman-encoding-test.html | 1 + .../fast/encoding/xml-charset-utf16-expected.txt | 1 + LayoutTests/fast/encoding/xml-charset-utf16.html | 11 + .../fast/encoding/xml-utf-8-default-expected.txt | 3 + LayoutTests/fast/encoding/xml-utf-8-default.xml | 9 + LayoutTests/fast/encoding/yahoo-mail-expected.txt | 3 + LayoutTests/fast/encoding/yahoo-mail.html | 26 ++ LayoutTests/fast/encoding/yentest-expected.txt | 3 + LayoutTests/fast/encoding/yentest.html | 15 ++ LayoutTests/fast/encoding/yentest2-expected.txt | 5 + LayoutTests/fast/encoding/yentest2.html | 16 ++ LayoutTests/platform/android/test_expectations.txt | 8 + 193 files changed, 2754 insertions(+) create mode 100644 LayoutTests/fast/encoding/GBK/EUC-CN-expected.txt create mode 100644 LayoutTests/fast/encoding/GBK/EUC-CN.html create mode 100644 LayoutTests/fast/encoding/GBK/chinese-expected.txt create mode 100644 LayoutTests/fast/encoding/GBK/chinese.html create mode 100644 LayoutTests/fast/encoding/GBK/close-gbk-converter-expected.txt create mode 100644 LayoutTests/fast/encoding/GBK/close-gbk-converter.html create mode 100644 LayoutTests/fast/encoding/GBK/cn-gb-expected.txt create mode 100644 LayoutTests/fast/encoding/GBK/cn-gb.html create mode 100644 LayoutTests/fast/encoding/GBK/csgb2312-expected.txt create mode 100644 LayoutTests/fast/encoding/GBK/csgb2312.html create mode 100644 LayoutTests/fast/encoding/GBK/csgb231280-expected.txt create mode 100644 LayoutTests/fast/encoding/GBK/csgb231280.html create mode 100644 LayoutTests/fast/encoding/GBK/gb2312-expected.txt create mode 100644 LayoutTests/fast/encoding/GBK/gb2312.html create mode 100644 LayoutTests/fast/encoding/GBK/gb_2312-80-expected.txt create mode 100644 LayoutTests/fast/encoding/GBK/gb_2312-80.html create mode 100644 LayoutTests/fast/encoding/GBK/gbk-expected.txt create mode 100644 LayoutTests/fast/encoding/GBK/gbk.html create mode 100644 LayoutTests/fast/encoding/GBK/iso-ir-58-expected.txt create mode 100644 LayoutTests/fast/encoding/GBK/iso-ir-58.html create mode 100644 LayoutTests/fast/encoding/GBK/x-euc-cn-expected.txt create mode 100644 LayoutTests/fast/encoding/GBK/x-euc-cn.html create mode 100644 LayoutTests/fast/encoding/GBK/x-gbk-expected.txt create mode 100644 LayoutTests/fast/encoding/GBK/x-gbk.html create mode 100644 LayoutTests/fast/encoding/ahram-org-eg-expected.txt create mode 100644 LayoutTests/fast/encoding/ahram-org-eg.html create mode 100644 LayoutTests/fast/encoding/bandai-co-jp-releases-expected.txt create mode 100644 LayoutTests/fast/encoding/bandai-co-jp-releases.html create mode 100644 LayoutTests/fast/encoding/bom-in-content-expected.txt create mode 100644 LayoutTests/fast/encoding/bom-in-content-utf16-expected.txt create mode 100644 LayoutTests/fast/encoding/bom-in-content-utf16.html create mode 100644 LayoutTests/fast/encoding/bom-in-content.html create mode 100644 LayoutTests/fast/encoding/char-decoding-expected.txt create mode 100644 LayoutTests/fast/encoding/char-decoding-mac-expected.txt create mode 100644 LayoutTests/fast/encoding/char-decoding-mac.html create mode 100644 LayoutTests/fast/encoding/char-decoding.html create mode 100644 LayoutTests/fast/encoding/char-encoding-expected.txt create mode 100644 LayoutTests/fast/encoding/char-encoding-mac-expected.txt create mode 100644 LayoutTests/fast/encoding/char-encoding-mac.html create mode 100644 LayoutTests/fast/encoding/char-encoding.html create mode 100644 LayoutTests/fast/encoding/charset-cp1251-expected.txt create mode 100644 LayoutTests/fast/encoding/charset-cp1251.html create mode 100644 LayoutTests/fast/encoding/charset-invalid-expected.txt create mode 100644 LayoutTests/fast/encoding/charset-invalid.html create mode 100644 LayoutTests/fast/encoding/charset-koi8-u-expected.txt create mode 100644 LayoutTests/fast/encoding/charset-koi8-u.html create mode 100644 LayoutTests/fast/encoding/charset-unicode-expected.txt create mode 100644 LayoutTests/fast/encoding/charset-unicode.html create mode 100644 LayoutTests/fast/encoding/charset-utf16-expected.txt create mode 100644 LayoutTests/fast/encoding/charset-utf16.html create mode 100644 LayoutTests/fast/encoding/charset-xuser-defined-expected.txt create mode 100644 LayoutTests/fast/encoding/charset-xuser-defined.html create mode 100644 LayoutTests/fast/encoding/css-cached-bom-expected.txt create mode 100644 LayoutTests/fast/encoding/css-cached-bom.html create mode 100644 LayoutTests/fast/encoding/css-charset-default-expected.txt create mode 100644 LayoutTests/fast/encoding/css-charset-default.xhtml create mode 100644 LayoutTests/fast/encoding/css-charset-dom-expected.txt create mode 100644 LayoutTests/fast/encoding/css-charset-dom.html create mode 100644 LayoutTests/fast/encoding/css-charset-evil-expected.txt create mode 100644 LayoutTests/fast/encoding/css-charset-evil.css create mode 100644 LayoutTests/fast/encoding/css-charset-evil.html create mode 100644 LayoutTests/fast/encoding/css-charset-expected.txt create mode 100644 LayoutTests/fast/encoding/css-charset-import.css create mode 100644 LayoutTests/fast/encoding/css-charset-inherit-iso-8859-5.css create mode 100644 LayoutTests/fast/encoding/css-charset-inherit-koi-8.css create mode 100644 LayoutTests/fast/encoding/css-charset.css create mode 100644 LayoutTests/fast/encoding/css-charset.html create mode 100644 LayoutTests/fast/encoding/css-link-charset-expected.txt create mode 100644 LayoutTests/fast/encoding/css-link-charset.css create mode 100644 LayoutTests/fast/encoding/css-link-charset.html create mode 100644 LayoutTests/fast/encoding/decoder-allow-null-chars-expected.txt create mode 100644 LayoutTests/fast/encoding/decoder-allow-null-chars.html create mode 100644 LayoutTests/fast/encoding/default-xhtml-encoding-expected.txt create mode 100644 LayoutTests/fast/encoding/default-xhtml-encoding.xhtml create mode 100644 LayoutTests/fast/encoding/denormalised-voiced-japanese-chars.html create mode 100644 LayoutTests/fast/encoding/euckr-name-expected.txt create mode 100644 LayoutTests/fast/encoding/euckr-name.html create mode 100644 LayoutTests/fast/encoding/external-script-charset-expected.txt create mode 100644 LayoutTests/fast/encoding/external-script-charset.js create mode 100644 LayoutTests/fast/encoding/external-script-charset.xhtml create mode 100644 LayoutTests/fast/encoding/floraexpress-ru-expected.txt create mode 100644 LayoutTests/fast/encoding/floraexpress-ru.html create mode 100644 LayoutTests/fast/encoding/frame-default-enc-expected.txt create mode 100644 LayoutTests/fast/encoding/frame-default-enc.html create mode 100644 LayoutTests/fast/encoding/hanarei-blog32-fc2-com-expected.txt create mode 100644 LayoutTests/fast/encoding/hanarei-blog32-fc2-com.html create mode 100644 LayoutTests/fast/encoding/hebrew/8859-8-e-expected.txt create mode 100644 LayoutTests/fast/encoding/hebrew/8859-8-e.html create mode 100644 LayoutTests/fast/encoding/hebrew/8859-8-expected.txt create mode 100644 LayoutTests/fast/encoding/hebrew/8859-8-i-expected.txt create mode 100644 LayoutTests/fast/encoding/hebrew/8859-8-i.html create mode 100644 LayoutTests/fast/encoding/hebrew/8859-8.html create mode 100644 LayoutTests/fast/encoding/hebrew/csISO88598I-expected.txt create mode 100644 LayoutTests/fast/encoding/hebrew/csISO88598I.html create mode 100644 LayoutTests/fast/encoding/hebrew/hebrew-expected.txt create mode 100644 LayoutTests/fast/encoding/hebrew/hebrew.html create mode 100644 LayoutTests/fast/encoding/hebrew/iso-ir-138-expected.txt create mode 100644 LayoutTests/fast/encoding/hebrew/iso-ir-138.html create mode 100644 LayoutTests/fast/encoding/hebrew/logical-expected.txt create mode 100644 LayoutTests/fast/encoding/hebrew/logical.html create mode 100644 LayoutTests/fast/encoding/high-bit-latin1-expected.txt create mode 100644 LayoutTests/fast/encoding/high-bit-latin1.html create mode 100644 LayoutTests/fast/encoding/idn-security-expected.txt create mode 100644 LayoutTests/fast/encoding/idn-security.html create mode 100644 LayoutTests/fast/encoding/invalid-UTF-8-2-expected.txt create mode 100644 LayoutTests/fast/encoding/invalid-UTF-8-2.html create mode 100644 LayoutTests/fast/encoding/invalid-UTF-8.html create mode 100644 LayoutTests/fast/encoding/invalid-multi-byte-over-consumption-expected.txt create mode 100644 LayoutTests/fast/encoding/invalid-multi-byte-over-consumption.html create mode 100644 LayoutTests/fast/encoding/invalid-xml-expected.txt create mode 100644 LayoutTests/fast/encoding/invalid-xml.html create mode 100644 LayoutTests/fast/encoding/japanese-encoding-mix-expected.txt create mode 100644 LayoutTests/fast/encoding/japanese-encoding-mix.html create mode 100644 LayoutTests/fast/encoding/latin1-winlatin-expected.txt create mode 100644 LayoutTests/fast/encoding/latin1-winlatin.html create mode 100644 LayoutTests/fast/encoding/mailto-always-utf-8-expected.txt create mode 100644 LayoutTests/fast/encoding/mailto-always-utf-8.html create mode 100644 LayoutTests/fast/encoding/meta-charset-expected.txt create mode 100644 LayoutTests/fast/encoding/meta-charset.html create mode 100644 LayoutTests/fast/encoding/meta-in-xhtml-expected.txt create mode 100644 LayoutTests/fast/encoding/meta-in-xhtml.xhtml create mode 100644 LayoutTests/fast/encoding/misplaced-xml-declaration-expected.txt create mode 100644 LayoutTests/fast/encoding/misplaced-xml-declaration.html create mode 100644 LayoutTests/fast/encoding/mispositioned-meta-expected.txt create mode 100644 LayoutTests/fast/encoding/mispositioned-meta.html create mode 100644 LayoutTests/fast/encoding/namespace-tolerance-expected.txt create mode 100644 LayoutTests/fast/encoding/namespace-tolerance.html create mode 100644 LayoutTests/fast/encoding/no-charset-on-dynamic-script-load-expected.txt create mode 100644 LayoutTests/fast/encoding/no-charset-on-dynamic-script-load.html create mode 100644 LayoutTests/fast/encoding/noscript-in-head-expected.txt create mode 100644 LayoutTests/fast/encoding/noscript-in-head.html create mode 100644 LayoutTests/fast/encoding/percent-escaping-expected.txt create mode 100644 LayoutTests/fast/encoding/percent-escaping.html create mode 100644 LayoutTests/fast/encoding/preload-encoding-expected.txt create mode 100644 LayoutTests/fast/encoding/preload-encoding.html create mode 100644 LayoutTests/fast/encoding/pseudo-tags-in-attributes-expected.txt create mode 100644 LayoutTests/fast/encoding/pseudo-tags-in-attributes.html create mode 100644 LayoutTests/fast/encoding/pseudo-xml-2-expected.txt create mode 100644 LayoutTests/fast/encoding/pseudo-xml-2.html create mode 100644 LayoutTests/fast/encoding/pseudo-xml-3-expected.txt create mode 100644 LayoutTests/fast/encoding/pseudo-xml-3.html create mode 100644 LayoutTests/fast/encoding/pseudo-xml-4-expected.txt create mode 100644 LayoutTests/fast/encoding/pseudo-xml-4.html create mode 100644 LayoutTests/fast/encoding/pseudo-xml-expected.txt create mode 100644 LayoutTests/fast/encoding/pseudo-xml.html create mode 100644 LayoutTests/fast/encoding/resources/%25%u0435 0 %xx%%%ulike.html create mode 100644 LayoutTests/fast/encoding/resources/char-decoding-utils.js create mode 100644 LayoutTests/fast/encoding/resources/char-encoding-utils.js create mode 100644 LayoutTests/fast/encoding/resources/css-cached-bom-frame.html create mode 100644 LayoutTests/fast/encoding/resources/dummy.html create mode 100644 LayoutTests/fast/encoding/resources/dynamic-load-target.js create mode 100644 LayoutTests/fast/encoding/resources/frame-default-enc-frame.html create mode 100644 LayoutTests/fast/encoding/resources/invalid-xml-shift-jis.xml create mode 100644 LayoutTests/fast/encoding/resources/invalid-xml-utf16.xml create mode 100644 LayoutTests/fast/encoding/resources/invalid-xml-utf8.xml create mode 100644 LayoutTests/fast/encoding/resources/invalid-xml-x-mac-thai.xml create mode 100644 LayoutTests/fast/encoding/resources/invalid-xml.js create mode 100644 LayoutTests/fast/encoding/resources/preloaded-gb2312.css create mode 100644 LayoutTests/fast/encoding/resources/preloaded-gb2312.js create mode 100644 LayoutTests/fast/encoding/resources/preloaded-utf-8.css create mode 100644 LayoutTests/fast/encoding/resources/preloaded-utf-8.js create mode 100644 LayoutTests/fast/encoding/resources/utf-16-little-endian.css create mode 100644 LayoutTests/fast/encoding/resources/yentestexternal.js create mode 100644 LayoutTests/fast/encoding/resources/yentestexternal2.js create mode 100644 LayoutTests/fast/encoding/script-in-head-expected.txt create mode 100644 LayoutTests/fast/encoding/script-in-head.html create mode 100644 LayoutTests/fast/encoding/tag-in-title-expected.txt create mode 100644 LayoutTests/fast/encoding/tag-in-title.html create mode 100644 LayoutTests/fast/encoding/url-host-name-non-ascii-expected.txt create mode 100644 LayoutTests/fast/encoding/url-host-name-non-ascii.html create mode 100644 LayoutTests/fast/encoding/utf-16-big-endian.html create mode 100644 LayoutTests/fast/encoding/utf-16-little-endian.html create mode 100644 LayoutTests/fast/encoding/utf-16-no-bom.xml create mode 100644 LayoutTests/fast/encoding/utf-32-big-endian-bom-expected.txt create mode 100644 LayoutTests/fast/encoding/utf-32-big-endian-bom.html create mode 100644 LayoutTests/fast/encoding/utf-32-big-endian-nobom-expected.txt create mode 100644 LayoutTests/fast/encoding/utf-32-big-endian-nobom.xml create mode 100644 LayoutTests/fast/encoding/utf-32-little-endian-bom-expected.txt create mode 100644 LayoutTests/fast/encoding/utf-32-little-endian-bom.html create mode 100644 LayoutTests/fast/encoding/utf-32-little-endian-nobom-expected.txt create mode 100644 LayoutTests/fast/encoding/utf-32-little-endian-nobom.xml create mode 100644 LayoutTests/fast/encoding/xmacroman-encoding-test.html create mode 100644 LayoutTests/fast/encoding/xml-charset-utf16-expected.txt create mode 100644 LayoutTests/fast/encoding/xml-charset-utf16.html create mode 100644 LayoutTests/fast/encoding/xml-utf-8-default-expected.txt create mode 100644 LayoutTests/fast/encoding/xml-utf-8-default.xml create mode 100644 LayoutTests/fast/encoding/yahoo-mail-expected.txt create mode 100644 LayoutTests/fast/encoding/yahoo-mail.html create mode 100644 LayoutTests/fast/encoding/yentest-expected.txt create mode 100644 LayoutTests/fast/encoding/yentest.html create mode 100644 LayoutTests/fast/encoding/yentest2-expected.txt create mode 100644 LayoutTests/fast/encoding/yentest2.html (limited to 'LayoutTests') diff --git a/LayoutTests/fast/encoding/GBK/EUC-CN-expected.txt b/LayoutTests/fast/encoding/GBK/EUC-CN-expected.txt new file mode 100644 index 0000000..ec39154 --- /dev/null +++ b/LayoutTests/fast/encoding/GBK/EUC-CN-expected.txt @@ -0,0 +1,5 @@ +The following two lines should look identically: + +一筆€镕 + +一筆€镕 diff --git a/LayoutTests/fast/encoding/GBK/EUC-CN.html b/LayoutTests/fast/encoding/GBK/EUC-CN.html new file mode 100644 index 0000000..cb8f53f --- /dev/null +++ b/LayoutTests/fast/encoding/GBK/EUC-CN.html @@ -0,0 +1,10 @@ + + + + +

The following two lines should look identically:

+

һPF

+

一筆€镕

diff --git a/LayoutTests/fast/encoding/GBK/chinese-expected.txt b/LayoutTests/fast/encoding/GBK/chinese-expected.txt new file mode 100644 index 0000000..ec39154 --- /dev/null +++ b/LayoutTests/fast/encoding/GBK/chinese-expected.txt @@ -0,0 +1,5 @@ +The following two lines should look identically: + +一筆€镕 + +一筆€镕 diff --git a/LayoutTests/fast/encoding/GBK/chinese.html b/LayoutTests/fast/encoding/GBK/chinese.html new file mode 100644 index 0000000..a6a4c08 --- /dev/null +++ b/LayoutTests/fast/encoding/GBK/chinese.html @@ -0,0 +1,10 @@ + + + + +

The following two lines should look identically:

+

һPF

+

一筆€镕

diff --git a/LayoutTests/fast/encoding/GBK/close-gbk-converter-expected.txt b/LayoutTests/fast/encoding/GBK/close-gbk-converter-expected.txt new file mode 100644 index 0000000..92bd02f --- /dev/null +++ b/LayoutTests/fast/encoding/GBK/close-gbk-converter-expected.txt @@ -0,0 +1,3 @@ +This tests performs a sequence of actions that result in a GBK converter with substitution enabled being destroyed. + +PASS if there is no assertion failure. diff --git a/LayoutTests/fast/encoding/GBK/close-gbk-converter.html b/LayoutTests/fast/encoding/GBK/close-gbk-converter.html new file mode 100644 index 0000000..390246a --- /dev/null +++ b/LayoutTests/fast/encoding/GBK/close-gbk-converter.html @@ -0,0 +1,22 @@ + + + + + +

This tests performs a sequence of actions that result in a GBK converter with substitution enabled being destroyed.

+

PASS if there is no assertion failure.

+ diff --git a/LayoutTests/fast/encoding/GBK/cn-gb-expected.txt b/LayoutTests/fast/encoding/GBK/cn-gb-expected.txt new file mode 100644 index 0000000..ec39154 --- /dev/null +++ b/LayoutTests/fast/encoding/GBK/cn-gb-expected.txt @@ -0,0 +1,5 @@ +The following two lines should look identically: + +一筆€镕 + +一筆€镕 diff --git a/LayoutTests/fast/encoding/GBK/cn-gb.html b/LayoutTests/fast/encoding/GBK/cn-gb.html new file mode 100644 index 0000000..99b11ff --- /dev/null +++ b/LayoutTests/fast/encoding/GBK/cn-gb.html @@ -0,0 +1,10 @@ + + + + +

The following two lines should look identically:

+

һPF

+

一筆€镕

diff --git a/LayoutTests/fast/encoding/GBK/csgb2312-expected.txt b/LayoutTests/fast/encoding/GBK/csgb2312-expected.txt new file mode 100644 index 0000000..ec39154 --- /dev/null +++ b/LayoutTests/fast/encoding/GBK/csgb2312-expected.txt @@ -0,0 +1,5 @@ +The following two lines should look identically: + +一筆€镕 + +一筆€镕 diff --git a/LayoutTests/fast/encoding/GBK/csgb2312.html b/LayoutTests/fast/encoding/GBK/csgb2312.html new file mode 100644 index 0000000..f7afd45 --- /dev/null +++ b/LayoutTests/fast/encoding/GBK/csgb2312.html @@ -0,0 +1,10 @@ + + + + +

The following two lines should look identically:

+

һPF

+

一筆€镕

diff --git a/LayoutTests/fast/encoding/GBK/csgb231280-expected.txt b/LayoutTests/fast/encoding/GBK/csgb231280-expected.txt new file mode 100644 index 0000000..ec39154 --- /dev/null +++ b/LayoutTests/fast/encoding/GBK/csgb231280-expected.txt @@ -0,0 +1,5 @@ +The following two lines should look identically: + +一筆€镕 + +一筆€镕 diff --git a/LayoutTests/fast/encoding/GBK/csgb231280.html b/LayoutTests/fast/encoding/GBK/csgb231280.html new file mode 100644 index 0000000..033d8ef --- /dev/null +++ b/LayoutTests/fast/encoding/GBK/csgb231280.html @@ -0,0 +1,10 @@ + + + + +

The following two lines should look identically:

+

һPF

+

一筆€镕

diff --git a/LayoutTests/fast/encoding/GBK/gb2312-expected.txt b/LayoutTests/fast/encoding/GBK/gb2312-expected.txt new file mode 100644 index 0000000..ec39154 --- /dev/null +++ b/LayoutTests/fast/encoding/GBK/gb2312-expected.txt @@ -0,0 +1,5 @@ +The following two lines should look identically: + +一筆€镕 + +一筆€镕 diff --git a/LayoutTests/fast/encoding/GBK/gb2312.html b/LayoutTests/fast/encoding/GBK/gb2312.html new file mode 100644 index 0000000..72e69ea --- /dev/null +++ b/LayoutTests/fast/encoding/GBK/gb2312.html @@ -0,0 +1,10 @@ + + + + +

The following two lines should look identically:

+

һPF

+

一筆€镕

diff --git a/LayoutTests/fast/encoding/GBK/gb_2312-80-expected.txt b/LayoutTests/fast/encoding/GBK/gb_2312-80-expected.txt new file mode 100644 index 0000000..ec39154 --- /dev/null +++ b/LayoutTests/fast/encoding/GBK/gb_2312-80-expected.txt @@ -0,0 +1,5 @@ +The following two lines should look identically: + +一筆€镕 + +一筆€镕 diff --git a/LayoutTests/fast/encoding/GBK/gb_2312-80.html b/LayoutTests/fast/encoding/GBK/gb_2312-80.html new file mode 100644 index 0000000..e16695e --- /dev/null +++ b/LayoutTests/fast/encoding/GBK/gb_2312-80.html @@ -0,0 +1,10 @@ + + + + +

The following two lines should look identically:

+

һPF

+

一筆€镕

diff --git a/LayoutTests/fast/encoding/GBK/gbk-expected.txt b/LayoutTests/fast/encoding/GBK/gbk-expected.txt new file mode 100644 index 0000000..ec39154 --- /dev/null +++ b/LayoutTests/fast/encoding/GBK/gbk-expected.txt @@ -0,0 +1,5 @@ +The following two lines should look identically: + +一筆€镕 + +一筆€镕 diff --git a/LayoutTests/fast/encoding/GBK/gbk.html b/LayoutTests/fast/encoding/GBK/gbk.html new file mode 100644 index 0000000..6632595 --- /dev/null +++ b/LayoutTests/fast/encoding/GBK/gbk.html @@ -0,0 +1,10 @@ + + + + +

The following two lines should look identically:

+

һPF

+

一筆€镕

diff --git a/LayoutTests/fast/encoding/GBK/iso-ir-58-expected.txt b/LayoutTests/fast/encoding/GBK/iso-ir-58-expected.txt new file mode 100644 index 0000000..ec39154 --- /dev/null +++ b/LayoutTests/fast/encoding/GBK/iso-ir-58-expected.txt @@ -0,0 +1,5 @@ +The following two lines should look identically: + +一筆€镕 + +一筆€镕 diff --git a/LayoutTests/fast/encoding/GBK/iso-ir-58.html b/LayoutTests/fast/encoding/GBK/iso-ir-58.html new file mode 100644 index 0000000..7fa90bc --- /dev/null +++ b/LayoutTests/fast/encoding/GBK/iso-ir-58.html @@ -0,0 +1,10 @@ + + + + +

The following two lines should look identically:

+

һPF

+

一筆€镕

diff --git a/LayoutTests/fast/encoding/GBK/x-euc-cn-expected.txt b/LayoutTests/fast/encoding/GBK/x-euc-cn-expected.txt new file mode 100644 index 0000000..ec39154 --- /dev/null +++ b/LayoutTests/fast/encoding/GBK/x-euc-cn-expected.txt @@ -0,0 +1,5 @@ +The following two lines should look identically: + +一筆€镕 + +一筆€镕 diff --git a/LayoutTests/fast/encoding/GBK/x-euc-cn.html b/LayoutTests/fast/encoding/GBK/x-euc-cn.html new file mode 100644 index 0000000..4311d05 --- /dev/null +++ b/LayoutTests/fast/encoding/GBK/x-euc-cn.html @@ -0,0 +1,10 @@ + + + + +

The following two lines should look identically:

+

һPF

+

一筆€镕

diff --git a/LayoutTests/fast/encoding/GBK/x-gbk-expected.txt b/LayoutTests/fast/encoding/GBK/x-gbk-expected.txt new file mode 100644 index 0000000..ec39154 --- /dev/null +++ b/LayoutTests/fast/encoding/GBK/x-gbk-expected.txt @@ -0,0 +1,5 @@ +The following two lines should look identically: + +一筆€镕 + +一筆€镕 diff --git a/LayoutTests/fast/encoding/GBK/x-gbk.html b/LayoutTests/fast/encoding/GBK/x-gbk.html new file mode 100644 index 0000000..04aa636 --- /dev/null +++ b/LayoutTests/fast/encoding/GBK/x-gbk.html @@ -0,0 +1,10 @@ + + + + +

The following two lines should look identically:

+

һPF

+

一筆€镕

diff --git a/LayoutTests/fast/encoding/ahram-org-eg-expected.txt b/LayoutTests/fast/encoding/ahram-org-eg-expected.txt new file mode 100644 index 0000000..990472f --- /dev/null +++ b/LayoutTests/fast/encoding/ahram-org-eg-expected.txt @@ -0,0 +1,3 @@ +Test a particular example of broken markup that was making us ignore a charset declaration. + +Encoding: windows-1256 (should be windows-1256) diff --git a/LayoutTests/fast/encoding/ahram-org-eg.html b/LayoutTests/fast/encoding/ahram-org-eg.html new file mode 100644 index 0000000..d75cf06 --- /dev/null +++ b/LayoutTests/fast/encoding/ahram-org-eg.html @@ -0,0 +1,28 @@ + + + + + + + + + +

Test a particular example of broken markup that was making us ignore a charset declaration.

+ + +
diff --git a/LayoutTests/fast/encoding/bandai-co-jp-releases-expected.txt b/LayoutTests/fast/encoding/bandai-co-jp-releases-expected.txt new file mode 100644 index 0000000..f069c44 --- /dev/null +++ b/LayoutTests/fast/encoding/bandai-co-jp-releases-expected.txt @@ -0,0 +1,3 @@ +Test a particular example of broken markup that was making us ignore a charset declaration. + +Encoding: Shift_JIS (should be Shift_JIS) diff --git a/LayoutTests/fast/encoding/bandai-co-jp-releases.html b/LayoutTests/fast/encoding/bandai-co-jp-releases.html new file mode 100644 index 0000000..c3c2fdd --- /dev/null +++ b/LayoutTests/fast/encoding/bandai-co-jp-releases.html @@ -0,0 +1,21 @@ +
+ + + + + + +

Test a particular example of broken markup that was making us ignore a charset declaration.

+ + + diff --git a/LayoutTests/fast/encoding/bom-in-content-expected.txt b/LayoutTests/fast/encoding/bom-in-content-expected.txt new file mode 100644 index 0000000..11252db --- /dev/null +++ b/LayoutTests/fast/encoding/bom-in-content-expected.txt @@ -0,0 +1,4 @@ +Test for bug 18681: BOM characters should not be removed from input stream. + + +PASS diff --git a/LayoutTests/fast/encoding/bom-in-content-utf16-expected.txt b/LayoutTests/fast/encoding/bom-in-content-utf16-expected.txt new file mode 100644 index 0000000..11252db --- /dev/null +++ b/LayoutTests/fast/encoding/bom-in-content-utf16-expected.txt @@ -0,0 +1,4 @@ +Test for bug 18681: BOM characters should not be removed from input stream. + + +PASS diff --git a/LayoutTests/fast/encoding/bom-in-content-utf16.html b/LayoutTests/fast/encoding/bom-in-content-utf16.html new file mode 100644 index 0000000..3b55ad1 Binary files /dev/null and b/LayoutTests/fast/encoding/bom-in-content-utf16.html differ diff --git a/LayoutTests/fast/encoding/bom-in-content.html b/LayoutTests/fast/encoding/bom-in-content.html new file mode 100644 index 0000000..c30a914 --- /dev/null +++ b/LayoutTests/fast/encoding/bom-in-content.html @@ -0,0 +1,14 @@ + + + + +

Test for bug 18681: +BOM characters should not be removed from input stream.

+


+ + diff --git a/LayoutTests/fast/encoding/char-decoding-expected.txt b/LayoutTests/fast/encoding/char-decoding-expected.txt new file mode 100644 index 0000000..26afe48 --- /dev/null +++ b/LayoutTests/fast/encoding/char-decoding-expected.txt @@ -0,0 +1,163 @@ +This tests decoding characters in various character sets. + +On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". + + +PASS decode('UTF-8', '%E2%88%9A') is 'U+221A' +PASS decode('gb2312', '%A3%A0') is 'U+3000' +PASS decode('gb_2312-80', '%A3%A0') is 'U+3000' +PASS decode('chinese', '%A3%A0') is 'U+3000' +PASS decode('gbk', '%A3%A0') is 'U+3000' +PASS decode('gb18030', '%A3%A0') is 'U+3000' +PASS decode('EUC-CN', '%A3%A0') is 'U+3000' +PASS decode('Shift_JIS', '%82%d0') is 'U+3072' +PASS decode('shift-jis', '%82%d0') is 'U+3072' +PASS decode('korean', '%A2%E6') is 'U+20AC' +PASS decode('korean', '%A1%A4') is 'U+00B7' +PASS decode('korean', '%A1%A9') is 'U+00AD' +PASS decode('korean', '%A1%AA') is 'U+2015' +PASS decode('korean', '%A1%AD') is 'U+223C' +PASS decode('korean', '%A2%A6') is 'U+FF5E' +PASS decode('korean', '%A2%C1') is 'U+2299' +PASS decode('korean', '%1A') is 'U+001A' +PASS decode('korean', '%1C') is 'U+001C' +PASS decode('korean', '%8F%A1') is 'U+B8EA' +PASS decode('korean', '%B4%D3') is 'U+B2D2' +PASS decode('korean', '%A2%41') is 'U+C910' +PASS decode('EUC-KR', '%A2%E6') is 'U+20AC' +PASS decode('EUC-KR', '%A1%A4') is 'U+00B7' +PASS decode('EUC-KR', '%A1%A9') is 'U+00AD' +PASS decode('EUC-KR', '%A1%AA') is 'U+2015' +PASS decode('EUC-KR', '%A1%AD') is 'U+223C' +PASS decode('EUC-KR', '%A2%A6') is 'U+FF5E' +PASS decode('EUC-KR', '%A2%C1') is 'U+2299' +PASS decode('EUC-KR', '%1A') is 'U+001A' +PASS decode('EUC-KR', '%1C') is 'U+001C' +PASS decode('EUC-KR', '%8F%A1') is 'U+B8EA' +PASS decode('EUC-KR', '%B4%D3') is 'U+B2D2' +PASS decode('EUC-KR', '%A2%41') is 'U+C910' +PASS decode('windows-949', '%A2%E6') is 'U+20AC' +PASS decode('windows-949', '%A1%A4') is 'U+00B7' +PASS decode('windows-949', '%A1%A9') is 'U+00AD' +PASS decode('windows-949', '%A1%AA') is 'U+2015' +PASS decode('windows-949', '%A1%AD') is 'U+223C' +PASS decode('windows-949', '%A2%A6') is 'U+FF5E' +PASS decode('windows-949', '%A2%C1') is 'U+2299' +PASS decode('windows-949', '%1A') is 'U+001A' +PASS decode('windows-949', '%1C') is 'U+001C' +PASS decode('windows-949', '%8F%A1') is 'U+B8EA' +PASS decode('windows-949', '%B4%D3') is 'U+B2D2' +PASS decode('windows-949', '%A2%41') is 'U+C910' +PASS decode('x-windows-949', '%A2%E6') is 'U+20AC' +PASS decode('x-windows-949', '%A1%A4') is 'U+00B7' +PASS decode('x-windows-949', '%A1%A9') is 'U+00AD' +PASS decode('x-windows-949', '%A1%AA') is 'U+2015' +PASS decode('x-windows-949', '%A1%AD') is 'U+223C' +PASS decode('x-windows-949', '%A2%A6') is 'U+FF5E' +PASS decode('x-windows-949', '%A2%C1') is 'U+2299' +PASS decode('x-windows-949', '%1A') is 'U+001A' +PASS decode('x-windows-949', '%1C') is 'U+001C' +PASS decode('x-windows-949', '%8F%A1') is 'U+B8EA' +PASS decode('x-windows-949', '%B4%D3') is 'U+B2D2' +PASS decode('x-windows-949', '%A2%41') is 'U+C910' +PASS decode('x-uhc', '%A2%E6') is 'U+20AC' +PASS decode('x-uhc', '%A1%A4') is 'U+00B7' +PASS decode('x-uhc', '%A1%A9') is 'U+00AD' +PASS decode('x-uhc', '%A1%AA') is 'U+2015' +PASS decode('x-uhc', '%A1%AD') is 'U+223C' +PASS decode('x-uhc', '%A2%A6') is 'U+FF5E' +PASS decode('x-uhc', '%A2%C1') is 'U+2299' +PASS decode('x-uhc', '%1A') is 'U+001A' +PASS decode('x-uhc', '%1C') is 'U+001C' +PASS decode('x-uhc', '%8F%A1') is 'U+B8EA' +PASS decode('x-uhc', '%B4%D3') is 'U+B2D2' +PASS decode('x-uhc', '%A2%41') is 'U+C910' +PASS decode('iso-ir-149', '%A2%E6') is 'U+20AC' +PASS decode('iso-ir-149', '%A1%A4') is 'U+00B7' +PASS decode('iso-ir-149', '%A1%A9') is 'U+00AD' +PASS decode('iso-ir-149', '%A1%AA') is 'U+2015' +PASS decode('iso-ir-149', '%A1%AD') is 'U+223C' +PASS decode('iso-ir-149', '%A2%A6') is 'U+FF5E' +PASS decode('iso-ir-149', '%A2%C1') is 'U+2299' +PASS decode('iso-ir-149', '%1A') is 'U+001A' +PASS decode('iso-ir-149', '%1C') is 'U+001C' +PASS decode('iso-ir-149', '%8F%A1') is 'U+B8EA' +PASS decode('iso-ir-149', '%B4%D3') is 'U+B2D2' +PASS decode('iso-ir-149', '%A2%41') is 'U+C910' +PASS decode('KS_C_5601-1987', '%A2%E6') is 'U+20AC' +PASS decode('KS_C_5601-1987', '%A1%A4') is 'U+00B7' +PASS decode('KS_C_5601-1987', '%A1%A9') is 'U+00AD' +PASS decode('KS_C_5601-1987', '%A1%AA') is 'U+2015' +PASS decode('KS_C_5601-1987', '%A1%AD') is 'U+223C' +PASS decode('KS_C_5601-1987', '%A2%A6') is 'U+FF5E' +PASS decode('KS_C_5601-1987', '%A2%C1') is 'U+2299' +PASS decode('KS_C_5601-1987', '%1A') is 'U+001A' +PASS decode('KS_C_5601-1987', '%1C') is 'U+001C' +PASS decode('KS_C_5601-1987', '%8F%A1') is 'U+B8EA' +PASS decode('KS_C_5601-1987', '%B4%D3') is 'U+B2D2' +PASS decode('KS_C_5601-1987', '%A2%41') is 'U+C910' +PASS decode('KS_C_5601-1989', '%A2%E6') is 'U+20AC' +PASS decode('KS_C_5601-1989', '%A1%A4') is 'U+00B7' +PASS decode('KS_C_5601-1989', '%A1%A9') is 'U+00AD' +PASS decode('KS_C_5601-1989', '%A1%AA') is 'U+2015' +PASS decode('KS_C_5601-1989', '%A1%AD') is 'U+223C' +PASS decode('KS_C_5601-1989', '%A2%A6') is 'U+FF5E' +PASS decode('KS_C_5601-1989', '%A2%C1') is 'U+2299' +PASS decode('KS_C_5601-1989', '%1A') is 'U+001A' +PASS decode('KS_C_5601-1989', '%1C') is 'U+001C' +PASS decode('KS_C_5601-1989', '%8F%A1') is 'U+B8EA' +PASS decode('KS_C_5601-1989', '%B4%D3') is 'U+B2D2' +PASS decode('KS_C_5601-1989', '%A2%41') is 'U+C910' +PASS decode('iso-8859-9', '%80') is 'U+20AC' +PASS decode('iso-8859-9', '%9F') is 'U+0178' +PASS decode('iso-8859-9', '%FD') is 'U+0131' +PASS decode('latin5', '%80') is 'U+20AC' +PASS decode('latin5', '%9F') is 'U+0178' +PASS decode('latin5', '%FD') is 'U+0131' +PASS decode('windows-1254', '%80') is 'U+20AC' +PASS decode('windows-1254', '%9F') is 'U+0178' +PASS decode('windows-1254', '%FD') is 'U+0131' +PASS decode('ISO-8859-13', '%A1') is 'U+201D' +PASS decode('ISO-8859-13', '%A5') is 'U+201E' +PASS decode('ISO-8859-13', '%B4') is 'U+201C' +PASS decode('ISO-8859-13', '%FF') is 'U+2019' +PASS decode('windows-1257', '%80') is 'U+20AC' +PASS decode('windows-1257', '%B4') is 'U+00B4' +PASS decode('windows-1257', '%FF') is 'U+02D9' +PASS decode('iso-8859-7', '%A1') is 'U+2018' +PASS decode('iso-8859-7', '%B5') is 'U+0385' +PASS decode('iso-8859-7', '%B6') is 'U+0386' +PASS decode('windows-1253', '%80') is 'U+20AC' +PASS decode('windows-1253', '%A1') is 'U+0385' +PASS decode('windows-1253', '%B5') is 'U+00B5' +PASS decode('windows-1253', '%B6') is 'U+00B6' +PASS decode('KOI8-R', '%A4') is 'U+2553' +PASS decode('KOI8-R', '%AD') is 'U+255C' +PASS decode('KOI8-U', '%A4') is 'U+0454' +PASS decode('KOI8-U', '%AD') is 'U+0491' +PASS decode('TIS-620', '%80') is 'U+20AC' +PASS decode('TIS-620', '%96') is 'U+2013' +PASS decode('TIS-620', '%A0') is 'U+00A0' +PASS decode('TIS-620', '%A1') is 'U+0E01' +PASS decode('TIS-620', '%DB') is 'U+F8C1' +PASS decode('ISO-8859-11', '%80') is 'U+20AC' +PASS decode('ISO-8859-11', '%96') is 'U+2013' +PASS decode('ISO-8859-11', '%A0') is 'U+00A0' +PASS decode('ISO-8859-11', '%A1') is 'U+0E01' +PASS decode('ISO-8859-11', '%DB') is 'U+F8C1' +PASS decode('windows-874', '%80') is 'U+20AC' +PASS decode('windows-874', '%96') is 'U+2013' +PASS decode('windows-874', '%A0') is 'U+00A0' +PASS decode('windows-874', '%A1') is 'U+0E01' +PASS decode('windows-874', '%DB') is 'U+F8C1' +PASS decode('dos-874', '%80') is 'U+20AC' +PASS decode('dos-874', '%96') is 'U+2013' +PASS decode('dos-874', '%A0') is 'U+00A0' +PASS decode('dos-874', '%A1') is 'U+0E01' +PASS decode('dos-874', '%DB') is 'U+F8C1' +PASS decode('UTF-7', '+AD4') is 'U+002B' +PASS decode('utf-7', '+AD4') is 'U+002B' +PASS successfullyParsed is true + +TEST COMPLETE + diff --git a/LayoutTests/fast/encoding/char-decoding-mac-expected.txt b/LayoutTests/fast/encoding/char-decoding-mac-expected.txt new file mode 100644 index 0000000..af236ee --- /dev/null +++ b/LayoutTests/fast/encoding/char-decoding-mac-expected.txt @@ -0,0 +1,19 @@ +This tests decoding characters in various character sets. + +On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". + + +PASS decode('mac', '%C3') is 'U+221A' +PASS decode('macintosh', '%C3') is 'U+221A' +PASS decode('MacRoman', '%C3') is 'U+221A' +PASS decode('x-mac-greek', '%B0') is 'U+0391' +PASS decode('x-mac-ukrainian', '%80') is 'U+0410' +PASS decode('x-mac-cyrillic', '%80') is 'U+0410' +PASS decode('mac-cyrillic', '%80') is 'U+0410' +PASS decode('x-mac-centraleurroman', '%81') is 'U+0100' +PASS decode('x-mac-ce', '%81') is 'U+0100' +PASS decode('x-mac-turkish', '%81') is 'U+00C5' +PASS successfullyParsed is true + +TEST COMPLETE + diff --git a/LayoutTests/fast/encoding/char-decoding-mac.html b/LayoutTests/fast/encoding/char-decoding-mac.html new file mode 100644 index 0000000..e574e45 --- /dev/null +++ b/LayoutTests/fast/encoding/char-decoding-mac.html @@ -0,0 +1,31 @@ + + + + + + + +

+
+ + + + diff --git a/LayoutTests/fast/encoding/char-decoding.html b/LayoutTests/fast/encoding/char-decoding.html new file mode 100644 index 0000000..b913389 --- /dev/null +++ b/LayoutTests/fast/encoding/char-decoding.html @@ -0,0 +1,101 @@ + + + + + + + +

+
+ + + + diff --git a/LayoutTests/fast/encoding/char-encoding-expected.txt b/LayoutTests/fast/encoding/char-encoding-expected.txt new file mode 100644 index 0000000..988f73b --- /dev/null +++ b/LayoutTests/fast/encoding/char-encoding-expected.txt @@ -0,0 +1,22 @@ +This tests encoding characters in various character sets. + +On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". + + +PASS encode('UTF-8', 'U+00A0') is '%C2%A0' +PASS encode('GBK', 'U+00A5') is '%A3%A4' +PASS encode('gb2312', 'U+00A5') is '%A3%A4' +PASS encode('GB_2312-80', 'U+00A5') is '%A3%A4' +PASS encode('EUC-CN', 'U+00A5') is '%A3%A4' +PASS encode('GBK', 'U+20AC') is '%80' +PASS encode('gb2312', 'U+20AC') is '%80' +PASS encode('GB_2312-80', 'U+20AC') is '%80' +PASS encode('EUC-CN', 'U+20AC') is '%80' +PASS encode('GBK', 'U+01F9') is '%A8%BF' +PASS encode('GBK', 'U+1E3F') is '%A8%BC' +PASS encode('GBK', 'U+22EF') is '%A1%AD' +PASS encode('GBK', 'U+301C') is '%A1%AB' +PASS successfullyParsed is true + +TEST COMPLETE + diff --git a/LayoutTests/fast/encoding/char-encoding-mac-expected.txt b/LayoutTests/fast/encoding/char-encoding-mac-expected.txt new file mode 100644 index 0000000..7fd31ba --- /dev/null +++ b/LayoutTests/fast/encoding/char-encoding-mac-expected.txt @@ -0,0 +1,17 @@ +This tests encoding characters in various character sets. + +On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". + + +PASS encode('mac', 'U+221A') is '%C3' +PASS encode('macintosh', 'U+221A') is '%C3' +PASS encode('MacRoman', 'U+221A') is '%C3' +PASS encode('x-mac-greek', 'U+0391') is '%B0' +PASS encode('x-mac-cyrillic', 'U+0410') is '%80' +PASS encode('mac-cyrillic', 'U+0410') is '%80' +PASS encode('x-mac-centraleurroman', 'U+0100') is '%81' +PASS encode('x-mac-turkish', 'U+00C5') is '%81' +PASS successfullyParsed is true + +TEST COMPLETE + diff --git a/LayoutTests/fast/encoding/char-encoding-mac.html b/LayoutTests/fast/encoding/char-encoding-mac.html new file mode 100644 index 0000000..fd6ef24 --- /dev/null +++ b/LayoutTests/fast/encoding/char-encoding-mac.html @@ -0,0 +1,42 @@ + + + + + + + + +

+
+
+ + + + diff --git a/LayoutTests/fast/encoding/char-encoding.html b/LayoutTests/fast/encoding/char-encoding.html new file mode 100644 index 0000000..569cd5e --- /dev/null +++ b/LayoutTests/fast/encoding/char-encoding.html @@ -0,0 +1,52 @@ + + + + + + + + +

+
+
+ + + + diff --git a/LayoutTests/fast/encoding/charset-cp1251-expected.txt b/LayoutTests/fast/encoding/charset-cp1251-expected.txt new file mode 100644 index 0000000..d181b90 --- /dev/null +++ b/LayoutTests/fast/encoding/charset-cp1251-expected.txt @@ -0,0 +1 @@ +Как видно, приём? diff --git a/LayoutTests/fast/encoding/charset-cp1251.html b/LayoutTests/fast/encoding/charset-cp1251.html new file mode 100644 index 0000000..d387d98 --- /dev/null +++ b/LayoutTests/fast/encoding/charset-cp1251.html @@ -0,0 +1,13 @@ + + + +cp1251 + + + + , ? + + diff --git a/LayoutTests/fast/encoding/charset-invalid-expected.txt b/LayoutTests/fast/encoding/charset-invalid-expected.txt new file mode 100644 index 0000000..7fcd112 --- /dev/null +++ b/LayoutTests/fast/encoding/charset-invalid-expected.txt @@ -0,0 +1,3 @@ +Should be your browser default encoding: ISO-8859-1 + +If it's latin-1 (ISO-8859-1), this should be accented e: é diff --git a/LayoutTests/fast/encoding/charset-invalid.html b/LayoutTests/fast/encoding/charset-invalid.html new file mode 100644 index 0000000..ae81286 --- /dev/null +++ b/LayoutTests/fast/encoding/charset-invalid.html @@ -0,0 +1,15 @@ + + + +Invalid encoding + + + + + + diff --git a/LayoutTests/fast/encoding/charset-koi8-u-expected.txt b/LayoutTests/fast/encoding/charset-koi8-u-expected.txt new file mode 100644 index 0000000..3ddb6ba --- /dev/null +++ b/LayoutTests/fast/encoding/charset-koi8-u-expected.txt @@ -0,0 +1,3 @@ +Test for bug 4195 - REGRESSION: KOI8-U encoding no longer supported. + +The test passes if these two letters look inverted along the vertical axis: "ЭЄ" diff --git a/LayoutTests/fast/encoding/charset-koi8-u.html b/LayoutTests/fast/encoding/charset-koi8-u.html new file mode 100644 index 0000000..b7c78b1 --- /dev/null +++ b/LayoutTests/fast/encoding/charset-koi8-u.html @@ -0,0 +1,15 @@ + + + +KOI8-U + + + +

Test for bug 4195 - +REGRESSION: KOI8-U encoding no longer supported.

+

The test passes if these two letters look inverted along the vertical axis: ""

+ + diff --git a/LayoutTests/fast/encoding/charset-unicode-expected.txt b/LayoutTests/fast/encoding/charset-unicode-expected.txt new file mode 100644 index 0000000..e60439f --- /dev/null +++ b/LayoutTests/fast/encoding/charset-unicode-expected.txt @@ -0,0 +1 @@ +Accented e: “é”. diff --git a/LayoutTests/fast/encoding/charset-unicode.html b/LayoutTests/fast/encoding/charset-unicode.html new file mode 100644 index 0000000..26b80c5 --- /dev/null +++ b/LayoutTests/fast/encoding/charset-unicode.html @@ -0,0 +1,9 @@ + + + + + +Accented e: “é”. + + + diff --git a/LayoutTests/fast/encoding/charset-utf16-expected.txt b/LayoutTests/fast/encoding/charset-utf16-expected.txt new file mode 100644 index 0000000..4da5ba0 --- /dev/null +++ b/LayoutTests/fast/encoding/charset-utf16-expected.txt @@ -0,0 +1 @@ +This should look like a Roman ‘B’: ‘В’. diff --git a/LayoutTests/fast/encoding/charset-utf16.html b/LayoutTests/fast/encoding/charset-utf16.html new file mode 100644 index 0000000..6096ed3 --- /dev/null +++ b/LayoutTests/fast/encoding/charset-utf16.html @@ -0,0 +1,11 @@ + + + + + + +This should look like a Roman ‘B’: ‘В’. + + + + diff --git a/LayoutTests/fast/encoding/charset-xuser-defined-expected.txt b/LayoutTests/fast/encoding/charset-xuser-defined-expected.txt new file mode 100644 index 0000000..b5ff20b --- /dev/null +++ b/LayoutTests/fast/encoding/charset-xuser-defined-expected.txt @@ -0,0 +1,4 @@ +Test bugzilla bug 18270 (Interpreting x-user-defined as windows-1252 when declared in meta tag). Two lines below should be identical. + +€ ‚ƒ„…†‡ˆ‰Š‹Œ Ž ‘’“”•–—˜™š›œ žŸ ¡¢£¤¥¦§¨©ª«¬ ®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ +€ ‚ƒ„…†‡ˆ‰Š‹Œ Ž ‘’“”•–—˜™š›œ žŸ ¡¢£¤¥¦§¨©ª«¬ ®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ diff --git a/LayoutTests/fast/encoding/charset-xuser-defined.html b/LayoutTests/fast/encoding/charset-xuser-defined.html new file mode 100644 index 0000000..45d7c50 --- /dev/null +++ b/LayoutTests/fast/encoding/charset-xuser-defined.html @@ -0,0 +1,17 @@ + + + +x-user-defined (bug + + + +

Test bugzilla bug 18270 (Interpreting x-user-defined as windows-1252 when +declared in meta tag). Two lines below should be identical.

+ +
+€ ‚ƒ„…†‡ˆ‰Š‹Œ Ž ‘’“”•–—˜™š›œ žŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ + + diff --git a/LayoutTests/fast/encoding/css-cached-bom-expected.txt b/LayoutTests/fast/encoding/css-cached-bom-expected.txt new file mode 100644 index 0000000..329ea59 --- /dev/null +++ b/LayoutTests/fast/encoding/css-cached-bom-expected.txt @@ -0,0 +1,3 @@ +Test that stylesheet with BOM is correctly parsed when loaded from cache. You should see word SUCCESS below. + +SUCCESS 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 @@ + + + + +
Test that stylesheet with BOM is correctly parsed when loaded from cache. You should see word SUCCESS below.
+ + +
FAIL
+ diff --git a/LayoutTests/fast/encoding/css-charset-default-expected.txt b/LayoutTests/fast/encoding/css-charset-default-expected.txt new file mode 100644 index 0000000..954790e --- /dev/null +++ b/LayoutTests/fast/encoding/css-charset-default-expected.txt @@ -0,0 +1,9 @@ +Test for bug 11011: External CSS is parsed as iso-8859-1 even though the main document is utf-8. + +Stylesheet 1 (inherit document charset using xml-stylesheet processing instruction): SUССЕSS + +Stylesheet 2 (inherit document charset using link): SUССЕSS + +Stylesheet 3 (inherit referring stylesheet charset): SUССЕSS + +Stylesheet 4 (inherit referring inline stylesheet charset): SUССЕSS diff --git a/LayoutTests/fast/encoding/css-charset-default.xhtml b/LayoutTests/fast/encoding/css-charset-default.xhtml new file mode 100644 index 0000000..24432f2 --- /dev/null +++ b/LayoutTests/fast/encoding/css-charset-default.xhtml @@ -0,0 +1,43 @@ + + + + + + CSS Default charset + + + + + +

Test for bug 11011: +External CSS is parsed as iso-8859-1 even though the main document is utf-8.

+ +

Stylesheet 1 (inherit document charset using xml-stylesheet processing instruction):

+

Stylesheet 2 (inherit document charset using link):

+

Stylesheet 3 (inherit referring stylesheet charset):

+

Stylesheet 4 (inherit referring inline stylesheet charset):

+ + + + + diff --git a/LayoutTests/fast/encoding/css-charset-dom-expected.txt b/LayoutTests/fast/encoding/css-charset-dom-expected.txt new file mode 100644 index 0000000..3e68c0a --- /dev/null +++ b/LayoutTests/fast/encoding/css-charset-dom-expected.txt @@ -0,0 +1,7 @@ +Test for bug 10676: @charset rules not accessible via DOM + +cssText: @charset "utf-8"; +encoding: utf-8 +Resetting encoding... +cssText: @charset "koi8-r"; +encoding: koi8-r diff --git a/LayoutTests/fast/encoding/css-charset-dom.html b/LayoutTests/fast/encoding/css-charset-dom.html new file mode 100644 index 0000000..8d591ae --- /dev/null +++ b/LayoutTests/fast/encoding/css-charset-dom.html @@ -0,0 +1,32 @@ + + + + + + + +

Test for bug 10676: +@charset rules not accessible via DOM

+ +

+ + + + + diff --git a/LayoutTests/fast/encoding/css-charset-evil-expected.txt b/LayoutTests/fast/encoding/css-charset-evil-expected.txt new file mode 100644 index 0000000..c555330 --- /dev/null +++ b/LayoutTests/fast/encoding/css-charset-evil-expected.txt @@ -0,0 +1,5 @@ +Test for bug 10155: CSS2: @charset is not supported + +CSS 2.1 says that @charset " must be written literally, but Firefox and IE allow extra spaces and single quotes. + +SUССЕSS diff --git a/LayoutTests/fast/encoding/css-charset-evil.css b/LayoutTests/fast/encoding/css-charset-evil.css new file mode 100644 index 0000000..e134cca --- /dev/null +++ b/LayoutTests/fast/encoding/css-charset-evil.css @@ -0,0 +1,2 @@ +@charset 'utf-8' ; +#dummy:before { content: "SUССЕSS"; } diff --git a/LayoutTests/fast/encoding/css-charset-evil.html b/LayoutTests/fast/encoding/css-charset-evil.html new file mode 100644 index 0000000..1a7bd70 --- /dev/null +++ b/LayoutTests/fast/encoding/css-charset-evil.html @@ -0,0 +1,31 @@ + + + + + + +

Test for bug 10155: +CSS2: @charset is not supported

+ +

CSS 2.1 says that @charset " must be written literally, +but Firefox and IE allow extra spaces and single quotes.

+ +

+ + + + + diff --git a/LayoutTests/fast/encoding/css-charset-expected.txt b/LayoutTests/fast/encoding/css-charset-expected.txt new file mode 100644 index 0000000..a8f5078 --- /dev/null +++ b/LayoutTests/fast/encoding/css-charset-expected.txt @@ -0,0 +1,5 @@ +Test for bug 10155: CSS2: @charset is not supported + +Test that @charset works and that indexed rule access via an IE-specific rules property does not take it into account. + +SUCCESS diff --git a/LayoutTests/fast/encoding/css-charset-import.css b/LayoutTests/fast/encoding/css-charset-import.css new file mode 100644 index 0000000..4b792b5 --- /dev/null +++ b/LayoutTests/fast/encoding/css-charset-import.css @@ -0,0 +1,2 @@ +@charset "koi8-r"; +@import "css-charset-inherit-koi-8.css"; diff --git a/LayoutTests/fast/encoding/css-charset-inherit-iso-8859-5.css b/LayoutTests/fast/encoding/css-charset-inherit-iso-8859-5.css new file mode 100644 index 0000000..9cedea6 --- /dev/null +++ b/LayoutTests/fast/encoding/css-charset-inherit-iso-8859-5.css @@ -0,0 +1,2 @@ +/* iso-8859-5 encoding */ +#dummy:before { content: "SUSS"; } diff --git a/LayoutTests/fast/encoding/css-charset-inherit-koi-8.css b/LayoutTests/fast/encoding/css-charset-inherit-koi-8.css new file mode 100644 index 0000000..3411620 --- /dev/null +++ b/LayoutTests/fast/encoding/css-charset-inherit-koi-8.css @@ -0,0 +1,2 @@ +/* koi-8 encoding */ +#dummy:before { content: "SUSS"; } diff --git a/LayoutTests/fast/encoding/css-charset.css b/LayoutTests/fast/encoding/css-charset.css new file mode 100644 index 0000000..675084b --- /dev/null +++ b/LayoutTests/fast/encoding/css-charset.css @@ -0,0 +1,2 @@ +@charset "utf-8"; +#dummy:before { content: "SUССЕSS"; } diff --git a/LayoutTests/fast/encoding/css-charset.html b/LayoutTests/fast/encoding/css-charset.html new file mode 100644 index 0000000..8280667 --- /dev/null +++ b/LayoutTests/fast/encoding/css-charset.html @@ -0,0 +1,34 @@ + + + + + + + +

Test for bug 10155: +CSS2: @charset is not supported

+

Test that @charset works and that indexed rule access via +an IE-specific rules property does not take it into account.

+ +

+ + + + + diff --git a/LayoutTests/fast/encoding/css-link-charset-expected.txt b/LayoutTests/fast/encoding/css-link-charset-expected.txt new file mode 100644 index 0000000..8fa78ad --- /dev/null +++ b/LayoutTests/fast/encoding/css-link-charset-expected.txt @@ -0,0 +1,3 @@ +Test to see if the charset property in a link works properly. + +SUCCESS diff --git a/LayoutTests/fast/encoding/css-link-charset.css b/LayoutTests/fast/encoding/css-link-charset.css new file mode 100644 index 0000000..9092f2e --- /dev/null +++ b/LayoutTests/fast/encoding/css-link-charset.css @@ -0,0 +1 @@ +#dummy:before { content: "SUССЕSS"; } diff --git a/LayoutTests/fast/encoding/css-link-charset.html b/LayoutTests/fast/encoding/css-link-charset.html new file mode 100644 index 0000000..033f2cf --- /dev/null +++ b/LayoutTests/fast/encoding/css-link-charset.html @@ -0,0 +1,25 @@ + + + + + + +

Test to see if the charset property in a link works properly.

+

+ + + diff --git a/LayoutTests/fast/encoding/decoder-allow-null-chars-expected.txt b/LayoutTests/fast/encoding/decoder-allow-null-chars-expected.txt new file mode 100644 index 0000000..60ce3e0 --- /dev/null +++ b/LayoutTests/fast/encoding/decoder-allow-null-chars-expected.txt @@ -0,0 +1,5 @@ +This tests that we no longer strip nulls from tags. This matches Firefox behavior. + +Test Passed + +result.innerHTML = message; diff --git a/LayoutTests/fast/encoding/decoder-allow-null-chars.html b/LayoutTests/fast/encoding/decoder-allow-null-chars.html new file mode 100644 index 0000000..e6ee249 Binary files /dev/null and b/LayoutTests/fast/encoding/decoder-allow-null-chars.html differ diff --git a/LayoutTests/fast/encoding/default-xhtml-encoding-expected.txt b/LayoutTests/fast/encoding/default-xhtml-encoding-expected.txt new file mode 100644 index 0000000..40ea127 --- /dev/null +++ b/LayoutTests/fast/encoding/default-xhtml-encoding-expected.txt @@ -0,0 +1,3 @@ +Test default XHTML encoding (in the absence of an XML declaration). + +Charset: UTF-8 (should be UTF-8) diff --git a/LayoutTests/fast/encoding/default-xhtml-encoding.xhtml b/LayoutTests/fast/encoding/default-xhtml-encoding.xhtml new file mode 100644 index 0000000..ffbc92c --- /dev/null +++ b/LayoutTests/fast/encoding/default-xhtml-encoding.xhtml @@ -0,0 +1,16 @@ + + +

Test default XHTML encoding (in the absence of an XML declaration).

+ +

+ + + + + diff --git a/LayoutTests/fast/encoding/denormalised-voiced-japanese-chars.html b/LayoutTests/fast/encoding/denormalised-voiced-japanese-chars.html new file mode 100644 index 0000000..93791ee --- /dev/null +++ b/LayoutTests/fast/encoding/denormalised-voiced-japanese-chars.html @@ -0,0 +1,15 @@ + + + + + + +This test checks that the decomposed unicode version of voiced japanese hiragana and katakana characters are rendered the same as the precomposed version. This test is a pixel-test, and passes when the text in the two heading elements are identical. +

バナナとパナマ

+

The above is decomposed

+ +

バナナとパナマ

+

The above is precomposed

+ + + diff --git a/LayoutTests/fast/encoding/euckr-name-expected.txt b/LayoutTests/fast/encoding/euckr-name-expected.txt new file mode 100644 index 0000000..5d352f8 --- /dev/null +++ b/LayoutTests/fast/encoding/euckr-name-expected.txt @@ -0,0 +1,6 @@ +Test for bug 25487. Even though we treat EUC-KR as windows-949, the name exposed via DOM APIs should still be EUC-KR. + +characterSet: EUC-KR (should be EUC-KR) +charset: EUC-KR (should be EUC-KR) +inputEncoding: EUC-KR (should be EUC-KR) + diff --git a/LayoutTests/fast/encoding/euckr-name.html b/LayoutTests/fast/encoding/euckr-name.html new file mode 100644 index 0000000..b8d62fe --- /dev/null +++ b/LayoutTests/fast/encoding/euckr-name.html @@ -0,0 +1,18 @@ + + + + + +

Test for bug 25487. Even though we treat EUC-KR as windows-949, the name exposed via DOM APIs should still be EUC-KR.

+ + + diff --git a/LayoutTests/fast/encoding/external-script-charset-expected.txt b/LayoutTests/fast/encoding/external-script-charset-expected.txt new file mode 100644 index 0000000..6575759 --- /dev/null +++ b/LayoutTests/fast/encoding/external-script-charset-expected.txt @@ -0,0 +1,3 @@ +Test that external scripts in XHTML documents inherit document charset. + +PASS diff --git a/LayoutTests/fast/encoding/external-script-charset.js b/LayoutTests/fast/encoding/external-script-charset.js new file mode 100644 index 0000000..841824d --- /dev/null +++ b/LayoutTests/fast/encoding/external-script-charset.js @@ -0,0 +1,4 @@ +if (window.layoutTestController) + layoutTestController.dumpAsText(); + +document.getElementById("result").innerHTML = ("Я" == "\u042F") ? "PASS" : "FAIL"; \ No newline at end of file diff --git a/LayoutTests/fast/encoding/external-script-charset.xhtml b/LayoutTests/fast/encoding/external-script-charset.xhtml new file mode 100644 index 0000000..d89b9d6 --- /dev/null +++ b/LayoutTests/fast/encoding/external-script-charset.xhtml @@ -0,0 +1,7 @@ + + +

Test that external scripts in XHTML documents inherit document charset.

+
+ + + diff --git a/LayoutTests/fast/encoding/floraexpress-ru-expected.txt b/LayoutTests/fast/encoding/floraexpress-ru-expected.txt new file mode 100644 index 0000000..5ba4587 --- /dev/null +++ b/LayoutTests/fast/encoding/floraexpress-ru-expected.txt @@ -0,0 +1,3 @@ +Test a particular example of broken markup that was making us ignore a charset declaration. + +Encoding: windows-1251 (should be windows-1251) diff --git a/LayoutTests/fast/encoding/floraexpress-ru.html b/LayoutTests/fast/encoding/floraexpress-ru.html new file mode 100644 index 0000000..8004ef7 --- /dev/null +++ b/LayoutTests/fast/encoding/floraexpress-ru.html @@ -0,0 +1,26 @@ + + + +Floraexpress - , , + - Floraexpress - + + + + + + + +

Test a particular example of broken markup that was making us ignore a charset declaration.

+ + + diff --git a/LayoutTests/fast/encoding/frame-default-enc-expected.txt b/LayoutTests/fast/encoding/frame-default-enc-expected.txt new file mode 100644 index 0000000..7ef22e9 --- /dev/null +++ b/LayoutTests/fast/encoding/frame-default-enc-expected.txt @@ -0,0 +1 @@ +PASS diff --git a/LayoutTests/fast/encoding/frame-default-enc.html b/LayoutTests/fast/encoding/frame-default-enc.html new file mode 100644 index 0000000..6ccf45b --- /dev/null +++ b/LayoutTests/fast/encoding/frame-default-enc.html @@ -0,0 +1,27 @@ + + + +Frames and encodings + + + + + + + diff --git a/LayoutTests/fast/encoding/hanarei-blog32-fc2-com-expected.txt b/LayoutTests/fast/encoding/hanarei-blog32-fc2-com-expected.txt new file mode 100644 index 0000000..22fd61b --- /dev/null +++ b/LayoutTests/fast/encoding/hanarei-blog32-fc2-com-expected.txt @@ -0,0 +1,3 @@ +Test a particular example of broken markup that was making us ignore a charset declaration. + +Encoding: EUC-JP (should be EUC-JP) diff --git a/LayoutTests/fast/encoding/hanarei-blog32-fc2-com.html b/LayoutTests/fast/encoding/hanarei-blog32-fc2-com.html new file mode 100644 index 0000000..a468237 --- /dev/null +++ b/LayoutTests/fast/encoding/hanarei-blog32-fc2-com.html @@ -0,0 +1,42 @@ + + + + + + + + +̵饤󥲡˻ä褦 + + + + + + + + + + + + + +

Test a particular example of broken markup that was making us ignore a charset declaration.

+ + + diff --git a/LayoutTests/fast/encoding/hebrew/8859-8-e-expected.txt b/LayoutTests/fast/encoding/hebrew/8859-8-e-expected.txt new file mode 100644 index 0000000..1503d86 --- /dev/null +++ b/LayoutTests/fast/encoding/hebrew/8859-8-e-expected.txt @@ -0,0 +1,3 @@ +ןוכנ הז + +PASS diff --git a/LayoutTests/fast/encoding/hebrew/8859-8-e.html b/LayoutTests/fast/encoding/hebrew/8859-8-e.html new file mode 100644 index 0000000..9314c39 --- /dev/null +++ b/LayoutTests/fast/encoding/hebrew/8859-8-e.html @@ -0,0 +1,3 @@ +

+

\ No newline at end of file diff --git a/LayoutTests/fast/encoding/hebrew/8859-8-expected.txt b/LayoutTests/fast/encoding/hebrew/8859-8-expected.txt new file mode 100644 index 0000000..1503d86 --- /dev/null +++ b/LayoutTests/fast/encoding/hebrew/8859-8-expected.txt @@ -0,0 +1,3 @@ +ןוכנ הז + +PASS diff --git a/LayoutTests/fast/encoding/hebrew/8859-8-i-expected.txt b/LayoutTests/fast/encoding/hebrew/8859-8-i-expected.txt new file mode 100644 index 0000000..899cd05 --- /dev/null +++ b/LayoutTests/fast/encoding/hebrew/8859-8-i-expected.txt @@ -0,0 +1,3 @@ +זה נכון + +PASS diff --git a/LayoutTests/fast/encoding/hebrew/8859-8-i.html b/LayoutTests/fast/encoding/hebrew/8859-8-i.html new file mode 100644 index 0000000..ca85599 --- /dev/null +++ b/LayoutTests/fast/encoding/hebrew/8859-8-i.html @@ -0,0 +1,3 @@ +

+

\ No newline at end of file diff --git a/LayoutTests/fast/encoding/hebrew/8859-8.html b/LayoutTests/fast/encoding/hebrew/8859-8.html new file mode 100644 index 0000000..c96323c --- /dev/null +++ b/LayoutTests/fast/encoding/hebrew/8859-8.html @@ -0,0 +1,3 @@ +

+

\ No newline at end of file diff --git a/LayoutTests/fast/encoding/hebrew/csISO88598I-expected.txt b/LayoutTests/fast/encoding/hebrew/csISO88598I-expected.txt new file mode 100644 index 0000000..899cd05 --- /dev/null +++ b/LayoutTests/fast/encoding/hebrew/csISO88598I-expected.txt @@ -0,0 +1,3 @@ +זה נכון + +PASS diff --git a/LayoutTests/fast/encoding/hebrew/csISO88598I.html b/LayoutTests/fast/encoding/hebrew/csISO88598I.html new file mode 100644 index 0000000..2c138d6 --- /dev/null +++ b/LayoutTests/fast/encoding/hebrew/csISO88598I.html @@ -0,0 +1,3 @@ +

+

\ No newline at end of file diff --git a/LayoutTests/fast/encoding/hebrew/hebrew-expected.txt b/LayoutTests/fast/encoding/hebrew/hebrew-expected.txt new file mode 100644 index 0000000..1503d86 --- /dev/null +++ b/LayoutTests/fast/encoding/hebrew/hebrew-expected.txt @@ -0,0 +1,3 @@ +ןוכנ הז + +PASS diff --git a/LayoutTests/fast/encoding/hebrew/hebrew.html b/LayoutTests/fast/encoding/hebrew/hebrew.html new file mode 100644 index 0000000..c96323c --- /dev/null +++ b/LayoutTests/fast/encoding/hebrew/hebrew.html @@ -0,0 +1,3 @@ +

+

\ No newline at end of file diff --git a/LayoutTests/fast/encoding/hebrew/iso-ir-138-expected.txt b/LayoutTests/fast/encoding/hebrew/iso-ir-138-expected.txt new file mode 100644 index 0000000..1503d86 --- /dev/null +++ b/LayoutTests/fast/encoding/hebrew/iso-ir-138-expected.txt @@ -0,0 +1,3 @@ +ןוכנ הז + +PASS diff --git a/LayoutTests/fast/encoding/hebrew/iso-ir-138.html b/LayoutTests/fast/encoding/hebrew/iso-ir-138.html new file mode 100644 index 0000000..fd4bb0b --- /dev/null +++ b/LayoutTests/fast/encoding/hebrew/iso-ir-138.html @@ -0,0 +1,3 @@ +

+

\ No newline at end of file diff --git a/LayoutTests/fast/encoding/hebrew/logical-expected.txt b/LayoutTests/fast/encoding/hebrew/logical-expected.txt new file mode 100644 index 0000000..899cd05 --- /dev/null +++ b/LayoutTests/fast/encoding/hebrew/logical-expected.txt @@ -0,0 +1,3 @@ +זה נכון + +PASS diff --git a/LayoutTests/fast/encoding/hebrew/logical.html b/LayoutTests/fast/encoding/hebrew/logical.html new file mode 100644 index 0000000..8929576 --- /dev/null +++ b/LayoutTests/fast/encoding/hebrew/logical.html @@ -0,0 +1,3 @@ +

+

\ No newline at end of file diff --git a/LayoutTests/fast/encoding/high-bit-latin1-expected.txt b/LayoutTests/fast/encoding/high-bit-latin1-expected.txt new file mode 100644 index 0000000..250d65d --- /dev/null +++ b/LayoutTests/fast/encoding/high-bit-latin1-expected.txt @@ -0,0 +1,3 @@ +Test Latin-1 conversion to String + +PASS diff --git a/LayoutTests/fast/encoding/high-bit-latin1.html b/LayoutTests/fast/encoding/high-bit-latin1.html new file mode 100644 index 0000000..ba8e6d6 --- /dev/null +++ b/LayoutTests/fast/encoding/high-bit-latin1.html @@ -0,0 +1,18 @@ + + + + + +

+ Test Latin-1 conversion to String +

+ +

+ +

+ + diff --git a/LayoutTests/fast/encoding/idn-security-expected.txt b/LayoutTests/fast/encoding/idn-security-expected.txt new file mode 100644 index 0000000..23a6f97 --- /dev/null +++ b/LayoutTests/fast/encoding/idn-security-expected.txt @@ -0,0 +1,247 @@ +PASS testIDNRoundTrip(0x2e) is '.' +PASS testIDNRoundTripNotFirstCharacter(0x2e) is '.' +PASS testIDNRoundTrip(0x2f) is '/' +PASS testIDNRoundTripNotFirstCharacter(0x2f) is '/' +PASS testIDNRoundTrip(0x61) is 'a' +PASS testIDNRoundTripNotFirstCharacter(0x61) is 'a' +PASS testIDNRoundTrip(0x633) is '%u0633' +PASS testIDNRoundTripNotFirstCharacter(0x633) is '%u0633' +PASS testIDNRoundTrip(0x561) is '%u0561' +PASS testIDNRoundTripNotFirstCharacter(0x561) is '%u0561' +PASS testIDNRoundTrip(0x3105) is '%u3105' +PASS testIDNRoundTripNotFirstCharacter(0x3105) is '%u3105' +PASS testIDNRoundTrip(0x1613) is '%u1613' +PASS testIDNRoundTripNotFirstCharacter(0x1613) is '%u1613' +PASS testIDNRoundTrip(0x905) is '%u0905' +PASS testIDNRoundTripNotFirstCharacter(0x905) is '%u0905' +PASS testIDNRoundTrip(0xa85) is '%u0A85' +PASS testIDNRoundTripNotFirstCharacter(0xa85) is '%u0A85' +PASS testIDNRoundTrip(0xa05) is '%u0A05' +PASS testIDNRoundTripNotFirstCharacter(0xa05) is '%u0A05' +PASS testIDNRoundTrip(0x1115) is '%u1115' +PASS testIDNRoundTripNotFirstCharacter(0x1115) is '%u1115' +PASS testIDNRoundTrip(0x4e2d) is '%u4E2D' +PASS testIDNRoundTripNotFirstCharacter(0x4e2d) is '%u4E2D' +PASS testIDNRoundTrip(0x5d0) is '%u05D0' +PASS testIDNRoundTripNotFirstCharacter(0x5d0) is '%u05D0' +PASS testIDNRoundTrip(0x3041) is '%u3041' +PASS testIDNRoundTripNotFirstCharacter(0x3041) is '%u3041' +PASS testIDNRoundTrip(0x30a1) is '%u30A1' +PASS testIDNRoundTripNotFirstCharacter(0x30a1) is '%u30A1' +PASS testIDNRoundTrip(0xb94) is '%u0B94' +PASS testIDNRoundTripNotFirstCharacter(0xb94) is '%u0B94' +PASS testIDNRoundTrip(0xe01) is '%u0E01' +PASS testIDNRoundTripNotFirstCharacter(0xe01) is '%u0E01' +PASS testIDNRoundTrip(0xa000) is '%uA000' +PASS testIDNRoundTripNotFirstCharacter(0xa000) is '%uA000' +PASS testIDNRoundTrip(0x2024) is '.' +PASS testIDNRoundTripNotFirstCharacter(0x2024) is '.' +PASS testIDNRoundTrip(0xfe52) is '.' +PASS testIDNRoundTripNotFirstCharacter(0xfe52) is '.' +PASS testIDNRoundTrip(0xff0f) is '/' +PASS testIDNRoundTripNotFirstCharacter(0xff0f) is '/' +PASS testIDNRoundTrip(0xfe68) is '%5C' +PASS testIDNRoundTripNotFirstCharacter(0xfe68) is '%5C' +PASS testIDNRoundTrip(0xff3c) is '%5C' +PASS testIDNRoundTripNotFirstCharacter(0xff3c) is '%5C' +PASS testIDNRoundTrip(0xa0) is '%20' +PASS testIDNRoundTripNotFirstCharacter(0xa0) is '%20' +PASS testIDNRoundTrip(0x2000) is '%20' +PASS testIDNRoundTripNotFirstCharacter(0x2000) is '%20' +PASS testIDNRoundTrip(0x2001) is '%20' +PASS testIDNRoundTripNotFirstCharacter(0x2001) is '%20' +PASS testIDNRoundTrip(0x2002) is '%20' +PASS testIDNRoundTripNotFirstCharacter(0x2002) is '%20' +PASS testIDNRoundTrip(0x2003) is '%20' +PASS testIDNRoundTripNotFirstCharacter(0x2003) is '%20' +PASS testIDNRoundTrip(0x2004) is '%20' +PASS testIDNRoundTripNotFirstCharacter(0x2004) is '%20' +PASS testIDNRoundTrip(0x2005) is '%20' +PASS testIDNRoundTripNotFirstCharacter(0x2005) is '%20' +PASS testIDNRoundTrip(0x2006) is '%20' +PASS testIDNRoundTripNotFirstCharacter(0x2006) is '%20' +PASS testIDNRoundTrip(0x2007) is '%20' +PASS testIDNRoundTripNotFirstCharacter(0x2007) is '%20' +PASS testIDNRoundTrip(0x2008) is '%20' +PASS testIDNRoundTripNotFirstCharacter(0x2008) is '%20' +PASS testIDNRoundTrip(0x2009) is '%20' +PASS testIDNRoundTripNotFirstCharacter(0x2009) is '%20' +PASS testIDNRoundTrip(0x200a) is '%20' +PASS testIDNRoundTripNotFirstCharacter(0x200a) is '%20' +PASS testIDNRoundTrip(0x202f) is '%20' +PASS testIDNRoundTripNotFirstCharacter(0x202f) is '%20' +PASS testIDNRoundTrip(0x205f) is '%20' +PASS testIDNRoundTripNotFirstCharacter(0x205f) is '%20' +PASS testIDNRoundTrip(0x3000) is '%20' +PASS testIDNRoundTripNotFirstCharacter(0x3000) is '%20' +PASS testIDNRoundTrip(0xbc) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0xbc) is 'punycode' +PASS testIDNRoundTrip(0xbd) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0xbd) is 'punycode' +PASS testIDNRoundTrip(0xed) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0xed) is 'punycode' +PASS testIDNRoundTrip(0x1c3) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0x1c3) is 'punycode' +PASS testIDNRoundTrip(0x251) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0x251) is 'punycode' +PASS testIDNRoundTrip(0x261) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0x261) is 'punycode' +PASS testIDNRoundTrip(0x337) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0x337) is 'punycode' +PASS testIDNRoundTrip(0x337) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0x337) is 'punycode' +PASS testIDNRoundTrip(0x338) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0x338) is 'punycode' +PASS testIDNRoundTrip(0x338) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0x338) is 'punycode' +PASS testIDNRoundTrip(0x5b4) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0x5b4) is 'punycode' +PASS testIDNRoundTrip(0x5bc) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0x5bc) is 'punycode' +PASS testIDNRoundTrip(0x660) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0x660) is 'punycode' +PASS testIDNRoundTrip(0x6f0) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0x6f0) is 'punycode' +PASS testIDNRoundTrip(0x115f) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0x115f) is 'punycode' +PASS testIDNRoundTrip(0x1160) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0x1160) is 'punycode' +PASS testIDNRoundTrip(0x2027) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0x2027) is 'punycode' +PASS testIDNRoundTrip(0x2039) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0x2039) is 'punycode' +PASS testIDNRoundTrip(0x203a) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0x203a) is 'punycode' +PASS testIDNRoundTrip(0x2044) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0x2044) is 'punycode' +PASS testIDNRoundTrip(0x2044) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0x2044) is 'punycode' +PASS testIDNRoundTrip(0x2154) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0x2154) is 'punycode' +PASS testIDNRoundTrip(0x2155) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0x2155) is 'punycode' +PASS testIDNRoundTrip(0x2156) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0x2156) is 'punycode' +PASS testIDNRoundTrip(0x2159) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0x2159) is 'punycode' +PASS testIDNRoundTrip(0x215a) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0x215a) is 'punycode' +PASS testIDNRoundTrip(0x215b) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0x215b) is 'punycode' +PASS testIDNRoundTrip(0x215f) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0x215f) is 'punycode' +PASS testIDNRoundTrip(0x2215) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0x2215) is 'punycode' +PASS testIDNRoundTrip(0x2216) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0x2216) is 'punycode' +PASS testIDNRoundTrip(0x233f) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0x233f) is 'punycode' +PASS testIDNRoundTrip(0x23ae) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0x23ae) is 'punycode' +PASS testIDNRoundTrip(0x244a) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0x244a) is 'punycode' +PASS testIDNRoundTrip(0x2571) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0x2571) is 'punycode' +PASS testIDNRoundTrip(0x2572) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0x2572) is 'punycode' +PASS testIDNRoundTrip(0x29f6) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0x29f6) is 'punycode' +PASS testIDNRoundTrip(0x29f8) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0x29f8) is 'punycode' +PASS testIDNRoundTrip(0x29f8) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0x29f8) is 'punycode' +PASS testIDNRoundTrip(0x2afb) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0x2afb) is 'punycode' +PASS testIDNRoundTrip(0x2afd) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0x2afd) is 'punycode' +PASS testIDNRoundTrip(0x3014) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0x3014) is 'punycode' +PASS testIDNRoundTrip(0x3015) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0x3015) is 'punycode' +PASS testIDNRoundTrip(0x3033) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0x3033) is 'punycode' +PASS testIDNRoundTrip(0x3035) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0x3035) is 'punycode' +PASS testIDNRoundTrip(0x3164) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0x3164) is 'punycode' +PASS testIDNRoundTrip(0x321d) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0x321d) is 'punycode' +PASS testIDNRoundTrip(0x321e) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0x321e) is 'punycode' +PASS testIDNRoundTrip(0x33ae) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0x33ae) is 'punycode' +PASS testIDNRoundTrip(0x33af) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0x33af) is 'punycode' +PASS testIDNRoundTrip(0x33c6) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0x33c6) is 'punycode' +PASS testIDNRoundTrip(0x33df) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0x33df) is 'punycode' +PASS testIDNRoundTrip(0xfe14) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0xfe14) is 'punycode' +PASS testIDNRoundTrip(0xfe15) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0xfe15) is 'punycode' +PASS testIDNRoundTrip(0xfe3f) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0xfe3f) is 'punycode' +PASS testIDNRoundTrip(0xfe5d) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0xfe5d) is 'punycode' +PASS testIDNRoundTrip(0xfe5e) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0xfe5e) is 'punycode' +PASS testIDNRoundTrip(0xffa0) is 'punycode' +PASS testIDNRoundTripNotFirstCharacter(0xffa0) is 'punycode' +PASS testIDNEncode(0x2028) is '%u2028' +PASS testIDNEncodeNotFirstCharacter(0x2028) is '%u2028' +PASS testIDNEncode(0x2029) is '%u2029' +PASS testIDNEncodeNotFirstCharacter(0x2029) is '%u2029' +PASS testIDNEncode(0x2ff0) is '%u2FF0' +PASS testIDNEncodeNotFirstCharacter(0x2ff0) is '%u2FF0' +PASS testIDNEncode(0x2ff1) is '%u2FF1' +PASS testIDNEncodeNotFirstCharacter(0x2ff1) is '%u2FF1' +PASS testIDNEncode(0x2ff2) is '%u2FF2' +PASS testIDNEncodeNotFirstCharacter(0x2ff2) is '%u2FF2' +PASS testIDNEncode(0x2ff3) is '%u2FF3' +PASS testIDNEncodeNotFirstCharacter(0x2ff3) is '%u2FF3' +PASS testIDNEncode(0x2ff4) is '%u2FF4' +PASS testIDNEncodeNotFirstCharacter(0x2ff4) is '%u2FF4' +PASS testIDNEncode(0x2ff5) is '%u2FF5' +PASS testIDNEncodeNotFirstCharacter(0x2ff5) is '%u2FF5' +PASS testIDNEncode(0x2ff6) is '%u2FF6' +PASS testIDNEncodeNotFirstCharacter(0x2ff6) is '%u2FF6' +PASS testIDNEncode(0x2ff7) is '%u2FF7' +PASS testIDNEncodeNotFirstCharacter(0x2ff7) is '%u2FF7' +PASS testIDNEncode(0x2ff8) is '%u2FF8' +PASS testIDNEncodeNotFirstCharacter(0x2ff8) is '%u2FF8' +PASS testIDNEncode(0x2ff9) is '%u2FF9' +PASS testIDNEncodeNotFirstCharacter(0x2ff9) is '%u2FF9' +PASS testIDNEncode(0x2ffa) is '%u2FFA' +PASS testIDNEncodeNotFirstCharacter(0x2ffa) is '%u2FFA' +PASS testIDNEncode(0x2ffb) is '%u2FFB' +PASS testIDNEncodeNotFirstCharacter(0x2ffb) is '%u2FFB' +PASS testIDNEncode(0xfff9) is '%uFFF9' +PASS testIDNEncodeNotFirstCharacter(0xfff9) is '%uFFF9' +PASS testIDNEncode(0xfffa) is '%uFFFA' +PASS testIDNEncodeNotFirstCharacter(0xfffa) is '%uFFFA' +PASS testIDNEncode(0xfffb) is '%uFFFB' +PASS testIDNEncodeNotFirstCharacter(0xfffb) is '%uFFFB' +PASS testIDNEncode(0xfffc) is '%uFFFC' +PASS testIDNEncodeNotFirstCharacter(0xfffc) is '%uFFFC' +PASS testIDNEncode(0xfffd) is '%uFFFD' +PASS testIDNEncodeNotFirstCharacter(0xfffd) is '%uFFFD' +PASS testIDNRoundTrip(0x5c3) is 'punycode' +PASS testIDNEncodeNotFirstCharacter(0x5c3) is '%u05C3' +PASS testIDNRoundTrip(0x5f4) is 'punycode' +PASS testIDNEncodeNotFirstCharacter(0x5f4) is '%u05F4' +PASS testIDNRoundTrip(0x6d4) is 'punycode' +PASS testIDNEncodeNotFirstCharacter(0x6d4) is '%u06D4' +PASS testIDNRoundTrip(0x702) is 'punycode' +PASS testIDNEncodeNotFirstCharacter(0x702) is '%u0702' +PASS testIDNEncode(0x200b) is '%u200B' +PASS testIDNRoundTripNotFirstCharacter(0x200b) is '' +PASS testIDNEncode(0x3002) is '%u3002' +PASS testIDNRoundTripNotFirstCharacter(0x3002) is '.' +PASS testIDNEncode(0xff0e) is '%uFF0E' +PASS testIDNRoundTripNotFirstCharacter(0xff0e) is '.' +PASS testIDNEncode(0xff61) is '%uFF61' +PASS testIDNRoundTripNotFirstCharacter(0xff61) is '.' +PASS testIDNEncode(0xfeff) is '%uFEFF' +PASS testIDNRoundTripNotFirstCharacter(0xfeff) is '' + diff --git a/LayoutTests/fast/encoding/idn-security.html b/LayoutTests/fast/encoding/idn-security.html new file mode 100644 index 0000000..12edaf7 --- /dev/null +++ b/LayoutTests/fast/encoding/idn-security.html @@ -0,0 +1,276 @@ + + + + + + +

+
+ + + diff --git a/LayoutTests/fast/encoding/invalid-UTF-8-2-expected.txt b/LayoutTests/fast/encoding/invalid-UTF-8-2-expected.txt new file mode 100644 index 0000000..66c6f22 --- /dev/null +++ b/LayoutTests/fast/encoding/invalid-UTF-8-2-expected.txt @@ -0,0 +1,4 @@ +This tests the decoding of invalid UTF-8 sequences. + +The following should be: "т��т ���" or "т��т ��������": +т��т ��� diff --git a/LayoutTests/fast/encoding/invalid-UTF-8-2.html b/LayoutTests/fast/encoding/invalid-UTF-8-2.html new file mode 100644 index 0000000..d6ddd94 --- /dev/null +++ b/LayoutTests/fast/encoding/invalid-UTF-8-2.html @@ -0,0 +1,23 @@ + + + + + + + +

This tests the decoding of invalid UTF-8 sequences.

+The following should be: "т��т ���" or "т��т ��������": +

т��т ���

+ + + diff --git a/LayoutTests/fast/encoding/invalid-UTF-8.html b/LayoutTests/fast/encoding/invalid-UTF-8.html new file mode 100644 index 0000000..ca8a9b1 --- /dev/null +++ b/LayoutTests/fast/encoding/invalid-UTF-8.html @@ -0,0 +1,19 @@ + + + + + + +

This tests the rendering of invalid UTF-8 sequences.

+

The output should be: "т??т" (with black diamonds in place of question marks).

+
+

т��т

+ + diff --git a/LayoutTests/fast/encoding/invalid-multi-byte-over-consumption-expected.txt b/LayoutTests/fast/encoding/invalid-multi-byte-over-consumption-expected.txt new file mode 100644 index 0000000..4d542ab --- /dev/null +++ b/LayoutTests/fast/encoding/invalid-multi-byte-over-consumption-expected.txt @@ -0,0 +1,4 @@ +Test if an invalid multi-byte sequence is onverconsumed leading to an XSS vector + +ABCD" onchange="test='Failed'" using malformed byte sequence 0x83 0x22 +Passed diff --git a/LayoutTests/fast/encoding/invalid-multi-byte-over-consumption.html b/LayoutTests/fast/encoding/invalid-multi-byte-over-consumption.html new file mode 100644 index 0000000..60d7f0c --- /dev/null +++ b/LayoutTests/fast/encoding/invalid-multi-byte-over-consumption.html @@ -0,0 +1,34 @@ + + + + + + +

Test if an invalid multi-byte sequence is onverconsumed leading to an +XSS vector

+ABCD" onchange="test='Failed'" using malformed byte sequence 0x83 0x22
+
+ diff --git a/LayoutTests/fast/encoding/invalid-xml-expected.txt b/LayoutTests/fast/encoding/invalid-xml-expected.txt new file mode 100644 index 0000000..a4c0b0e --- /dev/null +++ b/LayoutTests/fast/encoding/invalid-xml-expected.txt @@ -0,0 +1,16 @@ +Testing: invalid-xml-utf8.xml +PASS iframe.contentDocument.documentElement.tagName is "root" +PASS iframe.contentDocument.documentElement.getElementsByTagName('test').length < 1 is true +Testing: invalid-xml-utf16.xml +PASS iframe.contentDocument.documentElement.tagName is "root" +PASS iframe.contentDocument.documentElement.getElementsByTagName('test').length < 1 is true +Testing: invalid-xml-shift-jis.xml +PASS iframe.contentDocument.documentElement.tagName is "root" +PASS iframe.contentDocument.documentElement.getElementsByTagName('test').length < 1 is true +Testing: invalid-xml-x-mac-thai.xml +FAIL iframe.contentDocument.documentElement.tagName should be root. Was html. +PASS iframe.contentDocument.documentElement.getElementsByTagName('test').length < 1 is true +PASS successfullyParsed is true + +TEST COMPLETE + diff --git a/LayoutTests/fast/encoding/invalid-xml.html b/LayoutTests/fast/encoding/invalid-xml.html new file mode 100644 index 0000000..fbed47b --- /dev/null +++ b/LayoutTests/fast/encoding/invalid-xml.html @@ -0,0 +1,12 @@ + + + + + + + +

+
+ + + diff --git a/LayoutTests/fast/encoding/japanese-encoding-mix-expected.txt b/LayoutTests/fast/encoding/japanese-encoding-mix-expected.txt new file mode 100644 index 0000000..f7b1382 --- /dev/null +++ b/LayoutTests/fast/encoding/japanese-encoding-mix-expected.txt @@ -0,0 +1,5 @@ +Some text here is encoded as EUC-JP, and some (in comment) as Shift_JIS. Since there is an explicit encoding declaration, auto-detection shouldn't change the encoding. + +ニッポンテレビ + +Should be EUC-JP: EUC-JP diff --git a/LayoutTests/fast/encoding/japanese-encoding-mix.html b/LayoutTests/fast/encoding/japanese-encoding-mix.html new file mode 100644 index 0000000..7d9403b --- /dev/null +++ b/LayoutTests/fast/encoding/japanese-encoding-mix.html @@ -0,0 +1,9 @@ + + + +

Some text here is encoded as EUC-JP, and some (in comment) as Shift_JIS. Since there is an explicit encoding declaration, auto-detection shouldn't change the encoding.

˥åݥƥ

+ + diff --git a/LayoutTests/fast/encoding/latin1-winlatin-expected.txt b/LayoutTests/fast/encoding/latin1-winlatin-expected.txt new file mode 100644 index 0000000..f58c141 --- /dev/null +++ b/LayoutTests/fast/encoding/latin1-winlatin-expected.txt @@ -0,0 +1,17 @@ +We need to treat Latin-1 as if it were windows-1252, see bug 7602. + +As entities: €ƒ†‡ + +(escaped): %u20AC%81%u0192%u2020%u2021 + +Inline: €ƒ†‡ + +(escaped): %u20AC%81%u0192%u2020%u2021 + +document.write of unicode escapes: €ƒ†‡ + +(escaped): %80%81%83%86%87 + +innerHTML assignment of unicode escapes: €ƒ†‡ + +(escaped): %80%81%83%86%87 diff --git a/LayoutTests/fast/encoding/latin1-winlatin.html b/LayoutTests/fast/encoding/latin1-winlatin.html new file mode 100644 index 0000000..8fe64d2 --- /dev/null +++ b/LayoutTests/fast/encoding/latin1-winlatin.html @@ -0,0 +1,15 @@ + + + + + + +

We need to treat Latin-1 as if it were windows-1252, see bug 7602.

+

As entities: €ƒ†‡

+

Inline:

+

document.write of unicode escapes:

innerHTML assignment of unicode escapes:

+ + diff --git a/LayoutTests/fast/encoding/mailto-always-utf-8-expected.txt b/LayoutTests/fast/encoding/mailto-always-utf-8-expected.txt new file mode 100644 index 0000000..66b9118 --- /dev/null +++ b/LayoutTests/fast/encoding/mailto-always-utf-8-expected.txt @@ -0,0 +1,4 @@ +Policy delegate: attempt to load mailto:?subject=%E3%82%BF%E3%82%A4%E3%83%88%E3%83%AB&body=%E6%9C%AC%E6%96%87 with navigation type 'link clicked' originating from #text > SPAN > A > BODY > HTML > #document +Test encoding of mailto URLs. Click on the URL - a new message with Japanese subject and body should open in your mail client. + +Subject : Japanese Body : Japanese diff --git a/LayoutTests/fast/encoding/mailto-always-utf-8.html b/LayoutTests/fast/encoding/mailto-always-utf-8.html new file mode 100644 index 0000000..0bb6206 --- /dev/null +++ b/LayoutTests/fast/encoding/mailto-always-utf-8.html @@ -0,0 +1,28 @@ + + + + + + +

Test encoding of mailto URLs. Click on the URL - a new message + with Japanese subject and body should open in your mail client.

+ + + Subject : Japanese Body : Japanese + + + + + + diff --git a/LayoutTests/fast/encoding/meta-charset-expected.txt b/LayoutTests/fast/encoding/meta-charset-expected.txt new file mode 100644 index 0000000..6f985f9 --- /dev/null +++ b/LayoutTests/fast/encoding/meta-charset-expected.txt @@ -0,0 +1,3 @@ +Should see Hebrew letter Aleph twice: אא + +windows-1255 diff --git a/LayoutTests/fast/encoding/meta-charset.html b/LayoutTests/fast/encoding/meta-charset.html new file mode 100644 index 0000000..fe12f21 --- /dev/null +++ b/LayoutTests/fast/encoding/meta-charset.html @@ -0,0 +1,14 @@ + + + + + +

Should see Hebrew letter Aleph twice: א

+ + + diff --git a/LayoutTests/fast/encoding/meta-in-xhtml-expected.txt b/LayoutTests/fast/encoding/meta-in-xhtml-expected.txt new file mode 100644 index 0000000..9ff4140 --- /dev/null +++ b/LayoutTests/fast/encoding/meta-in-xhtml-expected.txt @@ -0,0 +1,3 @@ +Test for bug 5620: Should only honor encoding from in HTML + +Charset: UTF-8 (should be UTF-8) diff --git a/LayoutTests/fast/encoding/meta-in-xhtml.xhtml b/LayoutTests/fast/encoding/meta-in-xhtml.xhtml new file mode 100644 index 0000000..d9c6065 --- /dev/null +++ b/LayoutTests/fast/encoding/meta-in-xhtml.xhtml @@ -0,0 +1,23 @@ + + + + + + + +

Test for bug 5620: +Should only honor encoding from <meta> in HTML

+ +

+ + + + + diff --git a/LayoutTests/fast/encoding/misplaced-xml-declaration-expected.txt b/LayoutTests/fast/encoding/misplaced-xml-declaration-expected.txt new file mode 100644 index 0000000..34b2987 --- /dev/null +++ b/LayoutTests/fast/encoding/misplaced-xml-declaration-expected.txt @@ -0,0 +1 @@ +Should be your browser default encoding: ISO-8859-1 diff --git a/LayoutTests/fast/encoding/misplaced-xml-declaration.html b/LayoutTests/fast/encoding/misplaced-xml-declaration.html new file mode 100644 index 0000000..b4f559d --- /dev/null +++ b/LayoutTests/fast/encoding/misplaced-xml-declaration.html @@ -0,0 +1,10 @@ + + + +Should be your browser default encoding: + + diff --git a/LayoutTests/fast/encoding/mispositioned-meta-expected.txt b/LayoutTests/fast/encoding/mispositioned-meta-expected.txt new file mode 100644 index 0000000..a21684b --- /dev/null +++ b/LayoutTests/fast/encoding/mispositioned-meta-expected.txt @@ -0,0 +1,5 @@ +This test checks if WebKit can find a charset defined in an HTTP-EQUIV meta after the HEAD. + +The first letter should look like a Latin "C" here: + +Сайт Гоблина - Тупичок ст.о/у Гоблина (Goblin). Фильмы Гоблина. полный Пэ. Божья Искра. diff --git a/LayoutTests/fast/encoding/mispositioned-meta.html b/LayoutTests/fast/encoding/mispositioned-meta.html new file mode 100644 index 0000000..4eb0859 --- /dev/null +++ b/LayoutTests/fast/encoding/mispositioned-meta.html @@ -0,0 +1,22 @@ + + + , Goblin, + + + + + +

This test checks if WebKit can find a charset defined in an HTTP-EQUIV meta after the HEAD.

+

The first letter should look like a Latin "C" here:

+

+ - ./ (Goblin). . . . +

+ + + diff --git a/LayoutTests/fast/encoding/namespace-tolerance-expected.txt b/LayoutTests/fast/encoding/namespace-tolerance-expected.txt new file mode 100644 index 0000000..a349969 --- /dev/null +++ b/LayoutTests/fast/encoding/namespace-tolerance-expected.txt @@ -0,0 +1,5 @@ +This test ensures a UTF-8 encoding is properly set on documents that: +(1) use namespace prefixes on HTML elements +(2) specify a non-latin charset +(3) contain non-latin characters +If this test passes, the UTF-8 character below should exactly match the character the character in namespace-tolerance-expected.txt. 法 diff --git a/LayoutTests/fast/encoding/namespace-tolerance.html b/LayoutTests/fast/encoding/namespace-tolerance.html new file mode 100644 index 0000000..c7841d2 --- /dev/null +++ b/LayoutTests/fast/encoding/namespace-tolerance.html @@ -0,0 +1,15 @@ + + + +This test ensures a UTF-8 encoding is properly set on documents that: +
+(1) use namespace prefixes on HTML elements +
+(2) specify a non-latin charset +
+(3) contain non-latin characters +
+If this test passes, the UTF-8 character below should exactly match the character the character in namespace-tolerance-expected.txt. +法 + + diff --git a/LayoutTests/fast/encoding/no-charset-on-dynamic-script-load-expected.txt b/LayoutTests/fast/encoding/no-charset-on-dynamic-script-load-expected.txt new file mode 100644 index 0000000..b817801 --- /dev/null +++ b/LayoutTests/fast/encoding/no-charset-on-dynamic-script-load-expected.txt @@ -0,0 +1,2 @@ +This page tests that the character encoding is used for dynamically loaded scripts when no charset is specified directly or provided by the server. +PASS: UTF-8 was correctly used for this script. 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 @@ + + + Encoding test. + + + + This page tests that the character encoding is used for dynamically loaded + scripts when no charset is specified directly or provided by the server. + +
+ + + diff --git a/LayoutTests/fast/encoding/noscript-in-head-expected.txt b/LayoutTests/fast/encoding/noscript-in-head-expected.txt new file mode 100644 index 0000000..c00baa4 --- /dev/null +++ b/LayoutTests/fast/encoding/noscript-in-head-expected.txt @@ -0,0 +1,7 @@ +Test for bug 12389: Chinese decoding error at hk.antispam.yahoo.com + +You should see two identical lines below: + +雅虎香港 + +雅虎香港 diff --git a/LayoutTests/fast/encoding/noscript-in-head.html b/LayoutTests/fast/encoding/noscript-in-head.html new file mode 100644 index 0000000..bd8acd2 --- /dev/null +++ b/LayoutTests/fast/encoding/noscript-in-head.html @@ -0,0 +1,17 @@ + + + + +

Test for bug 12389: +Chinese decoding error at hk.antispam.yahoo.com

+

You should see two identical lines below:

+

+

雅虎香港

+ + + + diff --git a/LayoutTests/fast/encoding/percent-escaping-expected.txt b/LayoutTests/fast/encoding/percent-escaping-expected.txt new file mode 100644 index 0000000..37665db --- /dev/null +++ b/LayoutTests/fast/encoding/percent-escaping-expected.txt @@ -0,0 +1,3 @@ +Test for bug 6452 - KURL::appendEscapingBadChars() should never escape percent characters. + +SUCCESS diff --git a/LayoutTests/fast/encoding/percent-escaping.html b/LayoutTests/fast/encoding/percent-escaping.html new file mode 100644 index 0000000..a2d0ea8 --- /dev/null +++ b/LayoutTests/fast/encoding/percent-escaping.html @@ -0,0 +1,23 @@ + + + +Percent escaping + + +

Test for bug 6452 - +KURL::appendEscapingBadChars() should never escape percent characters.

+
+ +
+ + + diff --git a/LayoutTests/fast/encoding/preload-encoding-expected.txt b/LayoutTests/fast/encoding/preload-encoding-expected.txt new file mode 100644 index 0000000..578c51d --- /dev/null +++ b/LayoutTests/fast/encoding/preload-encoding-expected.txt @@ -0,0 +1,4 @@ +Script with charset: SUССЕSS. +Link rel=stylesheet with charset: SUCCESS +Script without charset: SUССЕSS +Link rel=stylesheet without charset: SUCCESS diff --git a/LayoutTests/fast/encoding/preload-encoding.html b/LayoutTests/fast/encoding/preload-encoding.html new file mode 100644 index 0000000..ef7b2f5 --- /dev/null +++ b/LayoutTests/fast/encoding/preload-encoding.html @@ -0,0 +1,47 @@ + + + + + + +
    +
  1. Script with charset: +. +
  2. Link rel=stylesheet with charset: + +
  3. Script without charset: + +
  4. Link rel=stylesheet without charset: + +
+ + + + + + + + + + + + + + + + diff --git a/LayoutTests/fast/encoding/pseudo-tags-in-attributes-expected.txt b/LayoutTests/fast/encoding/pseudo-tags-in-attributes-expected.txt new file mode 100644 index 0000000..134245f --- /dev/null +++ b/LayoutTests/fast/encoding/pseudo-tags-in-attributes-expected.txt @@ -0,0 +1,5 @@ +Test for bug 12506: REGRESSION: Safari doesn't display hebrew text on a web page, displayed correctly on Tiger. + +SUССЕSS + +Charset: UTF-8 diff --git a/LayoutTests/fast/encoding/pseudo-tags-in-attributes.html b/LayoutTests/fast/encoding/pseudo-tags-in-attributes.html new file mode 100644 index 0000000..2e6e015 --- /dev/null +++ b/LayoutTests/fast/encoding/pseudo-tags-in-attributes.html @@ -0,0 +1,20 @@ + + + + + + + + + +

Test for bug 12506: + REGRESSION: Safari doesn't display hebrew text on a web page, displayed correctly on Tiger.

+

SUССЕSS

+ + + + diff --git a/LayoutTests/fast/encoding/pseudo-xml-2-expected.txt b/LayoutTests/fast/encoding/pseudo-xml-2-expected.txt new file mode 100644 index 0000000..2ece178 --- /dev/null +++ b/LayoutTests/fast/encoding/pseudo-xml-2-expected.txt @@ -0,0 +1,5 @@ +Test for bug 9783: An XML declaration without an explicit encoding incorrectly triggers UTF-8 encoding in an HTML document + +Test that an XML declaration with an explicit encoding is still honored. This is what Firefox 1.5 and Safari 2.0 do, unlike WinIE 6. + +Charset: KOI8-R (should be KOI8-R) diff --git a/LayoutTests/fast/encoding/pseudo-xml-2.html b/LayoutTests/fast/encoding/pseudo-xml-2.html new file mode 100644 index 0000000..94f9b32 --- /dev/null +++ b/LayoutTests/fast/encoding/pseudo-xml-2.html @@ -0,0 +1,18 @@ + + + +

Test for bug 9783: +An XML declaration without an explicit encoding incorrectly triggers UTF-8 encoding in an HTML document

+

Test that an XML declaration with an explicit encoding is still honored. This is what Firefox 1.5 and Safari 2.0 do, unlike WinIE 6.

+

+ + + + + diff --git a/LayoutTests/fast/encoding/pseudo-xml-3-expected.txt b/LayoutTests/fast/encoding/pseudo-xml-3-expected.txt new file mode 100644 index 0000000..74f20f2 --- /dev/null +++ b/LayoutTests/fast/encoding/pseudo-xml-3-expected.txt @@ -0,0 +1,3 @@ +Test for bug 9783: An XML declaration without an explicit encoding incorrectly triggers UTF-8 encoding in an HTML document + +Charset: KOI8-R (should be KOI8-R) 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 @@ + + + + + + + +

Test for bug 9783: +An XML declaration without an explicit encoding incorrectly triggers UTF-8 encoding in an HTML document

+ +

+ + + + + diff --git a/LayoutTests/fast/encoding/pseudo-xml-4-expected.txt b/LayoutTests/fast/encoding/pseudo-xml-4-expected.txt new file mode 100644 index 0000000..da4a985 --- /dev/null +++ b/LayoutTests/fast/encoding/pseudo-xml-4-expected.txt @@ -0,0 +1,3 @@ +Test for bug 9783: An XML declaration without an explicit encoding incorrectly triggers UTF-8 encoding in an HTML document + +Charset: windows-1251 (should be windows-1251) diff --git a/LayoutTests/fast/encoding/pseudo-xml-4.html b/LayoutTests/fast/encoding/pseudo-xml-4.html new file mode 100644 index 0000000..fd5de7a --- /dev/null +++ b/LayoutTests/fast/encoding/pseudo-xml-4.html @@ -0,0 +1,23 @@ + + + + + + + +

Test for bug 9783: +An XML declaration without an explicit encoding incorrectly triggers UTF-8 encoding in an HTML document

+ +

+ + + + + diff --git a/LayoutTests/fast/encoding/pseudo-xml-expected.txt b/LayoutTests/fast/encoding/pseudo-xml-expected.txt new file mode 100644 index 0000000..1b56ef3 --- /dev/null +++ b/LayoutTests/fast/encoding/pseudo-xml-expected.txt @@ -0,0 +1,3 @@ +Test for bug 9783: An XML declaration without an explicit encoding incorrectly triggers UTF-8 encoding in an HTML document + +Charset: ISO-8859-1 (should be your browser default one) diff --git a/LayoutTests/fast/encoding/pseudo-xml.html b/LayoutTests/fast/encoding/pseudo-xml.html new file mode 100644 index 0000000..e71d39e --- /dev/null +++ b/LayoutTests/fast/encoding/pseudo-xml.html @@ -0,0 +1,20 @@ + + + + +

Test for bug 9783: +An XML declaration without an explicit encoding incorrectly triggers UTF-8 encoding in an HTML document

+ +

+ + + + + diff --git a/LayoutTests/fast/encoding/resources/%25%u0435 0 %xx%%%ulike.html b/LayoutTests/fast/encoding/resources/%25%u0435 0 %xx%%%ulike.html new file mode 100644 index 0000000..ae0d86f --- /dev/null +++ b/LayoutTests/fast/encoding/resources/%25%u0435 0 %xx%%%ulike.html @@ -0,0 +1,14 @@ + + +

Test for bug 6452 - +KURL::appendEscapingBadChars() should never escape percent characters.

+

FAILURE

+ + diff --git a/LayoutTests/fast/encoding/resources/char-decoding-utils.js b/LayoutTests/fast/encoding/resources/char-decoding-utils.js new file mode 100644 index 0000000..a091ad8 --- /dev/null +++ b/LayoutTests/fast/encoding/resources/char-decoding-utils.js @@ -0,0 +1,34 @@ +function hex(number) +{ + var hexDigit = "0123456789ABCDEF"; + var hex = hexDigit.substr(number & 0xf, 1); + while (number > 15) { + number >>= 4; + hex = hexDigit.substr(number & 15, 1) + hex; + } + return hex; +} + +function decode(charsetName, characterSequence) +{ + var req = new XMLHttpRequest; + req.open('GET', 'data:text/plain,' + characterSequence, false); + req.overrideMimeType('text/plain; charset="' + charsetName + '"'); + req.send(''); + var code = hex(req.responseText.charCodeAt(0)); + return "U+" + ("0000" + code).substr(code.length, 4); +} + +function testDecode(charsetName, characterSequence, unicode) +{ + shouldBe("decode('" + charsetName + "', '" + characterSequence + "')", "'" + unicode + "'"); +} + +function batchTestDecode(inputData) +{ + for (var i in inputData.encodings) { + for (var j in inputData.encoded) + testDecode(inputData.encodings[i], inputData.encoded[j], inputData.unicode[j]); + } +} + diff --git a/LayoutTests/fast/encoding/resources/char-encoding-utils.js b/LayoutTests/fast/encoding/resources/char-encoding-utils.js new file mode 100644 index 0000000..2007c7f --- /dev/null +++ b/LayoutTests/fast/encoding/resources/char-encoding-utils.js @@ -0,0 +1,69 @@ +function encode(charset, unicode) +{ + // Returns a value already encoded, since we can't do it synchronously. + return results[charset][unicode]; +} + +function testsDone() +{ + var form = document.getElementById('form'); + var subframe = document.getElementById('subframe'); + + form.parentNode.removeChild(form); + subframe.parentNode.removeChild(subframe); + + description("This tests encoding characters in various character sets."); + + for (i = 0; i < charsets.length; ++i) { + shouldBe("encode('" + charsets[i] + "', '" + unicodes[i] + "')", "'" + expectedResults[i] + "'"); + } + + isSuccessfullyParsed(); + + if (window.layoutTestController) + layoutTestController.notifyDone(); +} + +function processResult(result) +{ + var charsetResults = results[charsets[i]]; + if (!charsetResults) { + charsetResults = new Object; + results[charsets[i]] = charsetResults; + } + charsetResults[unicodes[i]] = result; +} + +function subframeLoaded() +{ + var URL = "" + document.getElementById('subframe').contentWindow.location; + processResult(URL.substr(URL.indexOf('=') + 1)); + ++i; + runTest(); +} + +function runTest() +{ + if (i >= charsets.length) { + testsDone(); + return; + } + + var form = document.getElementById('form'); + var text = document.getElementById('text'); + var subframe = document.getElementById('subframe'); + + form.acceptCharset = charsets[i]; + form.action = "resources/dummy.html"; + subframe.onload = subframeLoaded; + text.value = String.fromCharCode(unicodes[i].replace('U+', '0x')); + + form.submit(); +} + +function testEncode(charsetName, unicode, characterSequence) +{ + charsets.push(charsetName); + unicodes.push(unicode); + expectedResults.push(characterSequence); +} diff --git a/LayoutTests/fast/encoding/resources/css-cached-bom-frame.html b/LayoutTests/fast/encoding/resources/css-cached-bom-frame.html new file mode 100644 index 0000000..0412e3f --- /dev/null +++ b/LayoutTests/fast/encoding/resources/css-cached-bom-frame.html @@ -0,0 +1,5 @@ + + + diff --git a/LayoutTests/fast/encoding/resources/dummy.html b/LayoutTests/fast/encoding/resources/dummy.html new file mode 100644 index 0000000..e69de29 diff --git a/LayoutTests/fast/encoding/resources/dynamic-load-target.js b/LayoutTests/fast/encoding/resources/dynamic-load-target.js new file mode 100644 index 0000000..6a0e175 --- /dev/null +++ b/LayoutTests/fast/encoding/resources/dynamic-load-target.js @@ -0,0 +1,9 @@ + + +if ('とうきょう' == tokyo) + document.getElementById("target").innerHTML = "PASS: UTF-8 was correctly used for this script."; +else + document.getElementById("target").innerHTML = "FAIL: Incorrect encoding used. Expected '" + tokyo + "' but got '" + 'とうきょう' + "'."; + +if (window.layoutTestController) + window.layoutTestController.notifyDone(); diff --git a/LayoutTests/fast/encoding/resources/frame-default-enc-frame.html b/LayoutTests/fast/encoding/resources/frame-default-enc-frame.html new file mode 100644 index 0000000..8e928e3 --- /dev/null +++ b/LayoutTests/fast/encoding/resources/frame-default-enc-frame.html @@ -0,0 +1,17 @@ + + +Frame + + + + + + diff --git a/LayoutTests/fast/encoding/resources/invalid-xml-shift-jis.xml b/LayoutTests/fast/encoding/resources/invalid-xml-shift-jis.xml new file mode 100644 index 0000000..c33a08c --- /dev/null +++ b/LayoutTests/fast/encoding/resources/invalid-xml-shift-jis.xml @@ -0,0 +1,5 @@ + + + This is an invalid byte pair in shift-jis:  + + diff --git a/LayoutTests/fast/encoding/resources/invalid-xml-utf16.xml b/LayoutTests/fast/encoding/resources/invalid-xml-utf16.xml new file mode 100644 index 0000000..cb7da3a Binary files /dev/null and b/LayoutTests/fast/encoding/resources/invalid-xml-utf16.xml differ diff --git a/LayoutTests/fast/encoding/resources/invalid-xml-utf8.xml b/LayoutTests/fast/encoding/resources/invalid-xml-utf8.xml new file mode 100644 index 0000000..b47850e --- /dev/null +++ b/LayoutTests/fast/encoding/resources/invalid-xml-utf8.xml @@ -0,0 +1,5 @@ + + + This is an invalid byte in UTF-8: + + diff --git a/LayoutTests/fast/encoding/resources/invalid-xml-x-mac-thai.xml b/LayoutTests/fast/encoding/resources/invalid-xml-x-mac-thai.xml new file mode 100644 index 0000000..198d0ee --- /dev/null +++ b/LayoutTests/fast/encoding/resources/invalid-xml-x-mac-thai.xml @@ -0,0 +1,5 @@ + + + This is an invalid byte in x-mac-thai: + + diff --git a/LayoutTests/fast/encoding/resources/invalid-xml.js b/LayoutTests/fast/encoding/resources/invalid-xml.js new file mode 100644 index 0000000..e241a0c --- /dev/null +++ b/LayoutTests/fast/encoding/resources/invalid-xml.js @@ -0,0 +1,43 @@ +// test 70: XML encoding test +// q.v. XML 1.0, section 4.3.3 Character Encoding in Entities +// this only tests one of a large number of conditions that should cause fatal errors + +function runEncodingTest(event) +{ + debug("Testing: " + encodingTests[currentTest-1]); + shouldBeEqualToString("iframe.contentDocument.documentElement.tagName", "root"); + shouldBeTrue("iframe.contentDocument.documentElement.getElementsByTagName('test').length < 1"); + setTimeout(runNextTest, 0); +} + +var currentTest = 0; +var encodingTests = [ + "invalid-xml-utf8.xml", + "invalid-xml-utf16.xml", + "invalid-xml-shift-jis.xml", + "invalid-xml-x-mac-thai.xml", +]; + +function runNextTest() +{ + if (currentTest >= encodingTests.length) { + var script = document.createElement("script"); + script.src = "../js/resources/js-test-post.js"; + if (window.layoutTestController) + script.setAttribute("onload", "layoutTestController.notifyDone()"); + document.body.appendChild(script); + iframe.parentNode.removeChild(iframe); + return; + } + iframe.src = "resources/" + encodingTests[currentTest++]; +} + +if (window.layoutTestController) + layoutTestController.waitUntilDone(); + +var iframe = document.createElement("iframe"); +document.body.appendChild(iframe); +iframe.onload = runEncodingTest; +runNextTest(); + +var successfullyParsed = true; diff --git a/LayoutTests/fast/encoding/resources/preloaded-gb2312.css b/LayoutTests/fast/encoding/resources/preloaded-gb2312.css new file mode 100644 index 0000000..9d83e62 --- /dev/null +++ b/LayoutTests/fast/encoding/resources/preloaded-gb2312.css @@ -0,0 +1 @@ +#foobar:before { content: "SUSS"; } diff --git a/LayoutTests/fast/encoding/resources/preloaded-gb2312.js b/LayoutTests/fast/encoding/resources/preloaded-gb2312.js new file mode 100644 index 0000000..c324df0 --- /dev/null +++ b/LayoutTests/fast/encoding/resources/preloaded-gb2312.js @@ -0,0 +1 @@ +document.getElementById('testdiv3').innerText = 'SUSS'; diff --git a/LayoutTests/fast/encoding/resources/preloaded-utf-8.css b/LayoutTests/fast/encoding/resources/preloaded-utf-8.css new file mode 100644 index 0000000..d4d992b --- /dev/null +++ b/LayoutTests/fast/encoding/resources/preloaded-utf-8.css @@ -0,0 +1 @@ +#foobar:before { content: "SUССЕSS"; } diff --git a/LayoutTests/fast/encoding/resources/preloaded-utf-8.js b/LayoutTests/fast/encoding/resources/preloaded-utf-8.js new file mode 100644 index 0000000..6160a18 --- /dev/null +++ b/LayoutTests/fast/encoding/resources/preloaded-utf-8.js @@ -0,0 +1 @@ +document.getElementById('testdiv1').innerText = 'SUССЕSS'; diff --git a/LayoutTests/fast/encoding/resources/utf-16-little-endian.css b/LayoutTests/fast/encoding/resources/utf-16-little-endian.css new file mode 100644 index 0000000..2ca0c95 Binary files /dev/null and b/LayoutTests/fast/encoding/resources/utf-16-little-endian.css differ diff --git a/LayoutTests/fast/encoding/resources/yentestexternal.js b/LayoutTests/fast/encoding/resources/yentestexternal.js new file mode 100644 index 0000000..01262ea --- /dev/null +++ b/LayoutTests/fast/encoding/resources/yentestexternal.js @@ -0,0 +1,4 @@ +function writeYenExternal() +{ + document.write("two backslashes external: " + "\\" + "
"); +} diff --git a/LayoutTests/fast/encoding/resources/yentestexternal2.js b/LayoutTests/fast/encoding/resources/yentestexternal2.js new file mode 100644 index 0000000..a6db72b --- /dev/null +++ b/LayoutTests/fast/encoding/resources/yentestexternal2.js @@ -0,0 +1,5 @@ +function writeYenExternal() +{ + document.write("two backslashes external: \\
"); + document.write("one backslash external: \
"); +} diff --git a/LayoutTests/fast/encoding/script-in-head-expected.txt b/LayoutTests/fast/encoding/script-in-head-expected.txt new file mode 100644 index 0000000..c29dde5 --- /dev/null +++ b/LayoutTests/fast/encoding/script-in-head-expected.txt @@ -0,0 +1,5 @@ +Test for bug 12165: text encoding problem at jn.sapo.pt + +Should see a success message below. + +SUССЕSS 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 @@ + + + + + + + + + +

Test for bug 12165: +text encoding problem at jn.sapo.pt

+

Should see a success message below.

+
+ + diff --git a/LayoutTests/fast/encoding/tag-in-title-expected.txt b/LayoutTests/fast/encoding/tag-in-title-expected.txt new file mode 100644 index 0000000..6fef9b4 --- /dev/null +++ b/LayoutTests/fast/encoding/tag-in-title-expected.txt @@ -0,0 +1,5 @@ +This test checks that WebKit doesn't stop looking for a charset defined in an HTTP-EQUIV meta when it encounters a tag within . + +The first letter should look like a Latin "K" here: + +Какая гадость! diff --git a/LayoutTests/fast/encoding/tag-in-title.html b/LayoutTests/fast/encoding/tag-in-title.html new file mode 100644 index 0000000..ff7ca4e --- /dev/null +++ b/LayoutTests/fast/encoding/tag-in-title.html @@ -0,0 +1,19 @@ +<html> + <head> + <title> <b><font color=red>[R]</font></b> <title> + + + + + + +

This test checks that WebKit doesn't stop looking for a charset defined in an HTTP-EQUIV meta when it encounters a tag within <title>.

+

The first letter should look like a Latin "K" here:

+

+ ! +

+ + diff --git a/LayoutTests/fast/encoding/url-host-name-non-ascii-expected.txt b/LayoutTests/fast/encoding/url-host-name-non-ascii-expected.txt new file mode 100644 index 0000000..ed78fc8 --- /dev/null +++ b/LayoutTests/fast/encoding/url-host-name-non-ascii-expected.txt @@ -0,0 +1,3 @@ +Test for http://bugs.webkit.org/show_bug.cgi?id=17676 REGRESSION (r30240-r30267): href attribute values with non-ASCII characters in the host part do not work. + +PASS diff --git a/LayoutTests/fast/encoding/url-host-name-non-ascii.html b/LayoutTests/fast/encoding/url-host-name-non-ascii.html new file mode 100644 index 0000000..639b7ba --- /dev/null +++ b/LayoutTests/fast/encoding/url-host-name-non-ascii.html @@ -0,0 +1,13 @@ +

+ Test for http://bugs.webkit.org/show_bug.cgi?id=17676 + REGRESSION (r30240-r30267): href attribute values with non-ASCII characters in the host part do not work. +

+ +
+ diff --git a/LayoutTests/fast/encoding/utf-16-big-endian.html b/LayoutTests/fast/encoding/utf-16-big-endian.html new file mode 100644 index 0000000..00db967 Binary files /dev/null and b/LayoutTests/fast/encoding/utf-16-big-endian.html differ diff --git a/LayoutTests/fast/encoding/utf-16-little-endian.html b/LayoutTests/fast/encoding/utf-16-little-endian.html new file mode 100644 index 0000000..540d7bf Binary files /dev/null and b/LayoutTests/fast/encoding/utf-16-little-endian.html differ diff --git a/LayoutTests/fast/encoding/utf-16-no-bom.xml b/LayoutTests/fast/encoding/utf-16-no-bom.xml new file mode 100644 index 0000000..17f9367 Binary files /dev/null and b/LayoutTests/fast/encoding/utf-16-no-bom.xml differ diff --git a/LayoutTests/fast/encoding/utf-32-big-endian-bom-expected.txt b/LayoutTests/fast/encoding/utf-32-big-endian-bom-expected.txt new file mode 100644 index 0000000..8c860aa --- /dev/null +++ b/LayoutTests/fast/encoding/utf-32-big-endian-bom-expected.txt @@ -0,0 +1,5 @@ +When dumped into a text file by the test controller, this needs to be viewed as UTF-8: + +This is an em dash, —, this is is a delta symbol, ∆, this is an uppercase pi, ∏, and this is a lowercase pi, π. + +Success : UTF-32BE diff --git a/LayoutTests/fast/encoding/utf-32-big-endian-bom.html b/LayoutTests/fast/encoding/utf-32-big-endian-bom.html new file mode 100644 index 0000000..bab8e9c Binary files /dev/null and b/LayoutTests/fast/encoding/utf-32-big-endian-bom.html differ diff --git a/LayoutTests/fast/encoding/utf-32-big-endian-nobom-expected.txt b/LayoutTests/fast/encoding/utf-32-big-endian-nobom-expected.txt new file mode 100644 index 0000000..8c860aa --- /dev/null +++ b/LayoutTests/fast/encoding/utf-32-big-endian-nobom-expected.txt @@ -0,0 +1,5 @@ +When dumped into a text file by the test controller, this needs to be viewed as UTF-8: + +This is an em dash, —, this is is a delta symbol, ∆, this is an uppercase pi, ∏, and this is a lowercase pi, π. + +Success : UTF-32BE diff --git a/LayoutTests/fast/encoding/utf-32-big-endian-nobom.xml b/LayoutTests/fast/encoding/utf-32-big-endian-nobom.xml new file mode 100644 index 0000000..78dc012 Binary files /dev/null and b/LayoutTests/fast/encoding/utf-32-big-endian-nobom.xml differ diff --git a/LayoutTests/fast/encoding/utf-32-little-endian-bom-expected.txt b/LayoutTests/fast/encoding/utf-32-little-endian-bom-expected.txt new file mode 100644 index 0000000..9179de0 --- /dev/null +++ b/LayoutTests/fast/encoding/utf-32-little-endian-bom-expected.txt @@ -0,0 +1,5 @@ +When dumped into a text file by the test controller, this needs to be viewed as UTF-8: + +This is an em dash, —, this is is a delta symbol, ∆, this is an uppercase pi, ∏, and this is a lowercase pi, π. + +Success : UTF-32LE diff --git a/LayoutTests/fast/encoding/utf-32-little-endian-bom.html b/LayoutTests/fast/encoding/utf-32-little-endian-bom.html new file mode 100644 index 0000000..2f566b4 Binary files /dev/null and b/LayoutTests/fast/encoding/utf-32-little-endian-bom.html differ diff --git a/LayoutTests/fast/encoding/utf-32-little-endian-nobom-expected.txt b/LayoutTests/fast/encoding/utf-32-little-endian-nobom-expected.txt new file mode 100644 index 0000000..9179de0 --- /dev/null +++ b/LayoutTests/fast/encoding/utf-32-little-endian-nobom-expected.txt @@ -0,0 +1,5 @@ +When dumped into a text file by the test controller, this needs to be viewed as UTF-8: + +This is an em dash, —, this is is a delta symbol, ∆, this is an uppercase pi, ∏, and this is a lowercase pi, π. + +Success : UTF-32LE diff --git a/LayoutTests/fast/encoding/utf-32-little-endian-nobom.xml b/LayoutTests/fast/encoding/utf-32-little-endian-nobom.xml new file mode 100644 index 0000000..af7a8f9 Binary files /dev/null and b/LayoutTests/fast/encoding/utf-32-little-endian-nobom.xml differ diff --git a/LayoutTests/fast/encoding/xmacroman-encoding-test.html b/LayoutTests/fast/encoding/xmacroman-encoding-test.html new file mode 100644 index 0000000..92702e0 --- /dev/null +++ b/LayoutTests/fast/encoding/xmacroman-encoding-test.html @@ -0,0 +1 @@ + xmacroman test

This tests the use of xmacroman as content type. You should not see any "garbage" characters if xmacroman is supported

apostrophe:
ellipsis:
em-dash: \ No newline at end of file diff --git a/LayoutTests/fast/encoding/xml-charset-utf16-expected.txt b/LayoutTests/fast/encoding/xml-charset-utf16-expected.txt new file mode 100644 index 0000000..4da5ba0 --- /dev/null +++ b/LayoutTests/fast/encoding/xml-charset-utf16-expected.txt @@ -0,0 +1 @@ +This should look like a Roman ‘B’: ‘В’. diff --git a/LayoutTests/fast/encoding/xml-charset-utf16.html b/LayoutTests/fast/encoding/xml-charset-utf16.html new file mode 100644 index 0000000..8257726 --- /dev/null +++ b/LayoutTests/fast/encoding/xml-charset-utf16.html @@ -0,0 +1,11 @@ + + + + + + + +This should look like a Roman B: ’. + + + diff --git a/LayoutTests/fast/encoding/xml-utf-8-default-expected.txt b/LayoutTests/fast/encoding/xml-utf-8-default-expected.txt new file mode 100644 index 0000000..04a1c26 --- /dev/null +++ b/LayoutTests/fast/encoding/xml-utf-8-default-expected.txt @@ -0,0 +1,3 @@ +When dumped into a text file by the test controller, this needs to be viewed as UTF-8: + +This is an em dash, —, this is is a delta symbol, ∆, this is an uppercase pi, ∏, and this is a lowercase pi, π. diff --git a/LayoutTests/fast/encoding/xml-utf-8-default.xml b/LayoutTests/fast/encoding/xml-utf-8-default.xml new file mode 100644 index 0000000..1f07505 --- /dev/null +++ b/LayoutTests/fast/encoding/xml-utf-8-default.xml @@ -0,0 +1,9 @@ + + + + +

When dumped into a text file by the test controller, this needs to be viewed as UTF-8:

+

This is an em dash, —, this is is a delta symbol, ∆, this is an uppercase pi, ∏, and this is a lowercase pi, π.

+ + + diff --git a/LayoutTests/fast/encoding/yahoo-mail-expected.txt b/LayoutTests/fast/encoding/yahoo-mail-expected.txt new file mode 100644 index 0000000..89ac9f6 --- /dev/null +++ b/LayoutTests/fast/encoding/yahoo-mail-expected.txt @@ -0,0 +1,3 @@ +Test a particular example of broken markup that was making us ignore a charset declaration. + +Encoding: UTF-8 (should be UTF-8) diff --git a/LayoutTests/fast/encoding/yahoo-mail.html b/LayoutTests/fast/encoding/yahoo-mail.html new file mode 100644 index 0000000..82331c8 --- /dev/null +++ b/LayoutTests/fast/encoding/yahoo-mail.html @@ -0,0 +1,26 @@ + + + +Yahoo! Mail - someone@yahoo.com + + + +
+ +

Test a particular example of broken markup that was making us ignore a charset declaration.

+ + + diff --git a/LayoutTests/fast/encoding/yentest-expected.txt b/LayoutTests/fast/encoding/yentest-expected.txt new file mode 100644 index 0000000..341a23a --- /dev/null +++ b/LayoutTests/fast/encoding/yentest-expected.txt @@ -0,0 +1,3 @@ +two backslashes external: \ +two backslashes inline: \ + diff --git a/LayoutTests/fast/encoding/yentest.html b/LayoutTests/fast/encoding/yentest.html new file mode 100644 index 0000000..a3a2a17 --- /dev/null +++ b/LayoutTests/fast/encoding/yentest.html @@ -0,0 +1,15 @@ + + + + + + + + + diff --git a/LayoutTests/fast/encoding/yentest2-expected.txt b/LayoutTests/fast/encoding/yentest2-expected.txt new file mode 100644 index 0000000..95557a3 --- /dev/null +++ b/LayoutTests/fast/encoding/yentest2-expected.txt @@ -0,0 +1,5 @@ +two backslashes external: \ +one backslash external: +two backslashes inline: \ +one backslash inline: + diff --git a/LayoutTests/fast/encoding/yentest2.html b/LayoutTests/fast/encoding/yentest2.html new file mode 100644 index 0000000..132069c --- /dev/null +++ b/LayoutTests/fast/encoding/yentest2.html @@ -0,0 +1,16 @@ + + + + + + + + + diff --git a/LayoutTests/platform/android/test_expectations.txt b/LayoutTests/platform/android/test_expectations.txt index aa87b25..021b97d 100644 --- a/LayoutTests/platform/android/test_expectations.txt +++ b/LayoutTests/platform/android/test_expectations.txt @@ -43,6 +43,11 @@ ietestcenter/Javascript/15.4.4.15-3-8.html CRASH // hangs the layout tests http: // This first block of tests are for features for which Android // should pass all tests. They are skipped only temporarily. // TODO: Fix these failing tests and remove them from this list. +fast/encoding/char-encoding.html FAIL // fails in Java HTTP stack, see http://b/issue?id=3047156 +fast/encoding/char-decoding.html FAIL // fails in Java HTTP stack, see http://b/issue?id=3047156 +fast/encoding/hanarei-blog32-fc2-com.html FAIL // fails in Java HTTP stack, see http://b/issue?id=3046986 +fast/encoding/mailto-always-utf-8.html FAIL // Requires waitForPolicyDelegate(), see http://b/issue?id=3043468 +fast/encoding/percent-escaping.html FAIL // fails in Java HTTP stack, see http://b/issue?id=3046984 fast/events/touch/basic-multi-touch-events.html FAIL // Requires multi-touch fast/events/touch/touch-target.html FAIL // Requires multi-touch http/tests/appcache/empty-manifest.html FAIL // flaky @@ -60,6 +65,9 @@ storage/transaction-error-callback-isolated-world.html FAIL // Requires layoutTe storage/transaction-success-callback-isolated-world.html FAIL // Requires layoutTestController.evaluateScriptInIsolatedWorld() // Expected failures due to unsupported features. +fast/encoding/char-decoding-mac.html FAIL // Mac-specific encodings (also marked Won't Fix in Chromium, bug 7388) +fast/encoding/char-encoding-mac.html FAIL // Mac-specific encodings (also marked Won't Fix in Chromium, bug 7388) +fast/encoding/idn-security.html FAIL // Mac-specific IDN checks (also marked Won't Fix in Chromium, bug 21814) fast/events/touch/touch-coords-in-zoom-and-scroll.html FAIL // Requires eventSender.zoomPageIn(),zoomPageOut() fast/workers FAIL // workers not supported http/tests/eventsource/workers FAIL // workers not supported -- cgit v1.1