Changeset 107159 in webkit
- Timestamp:
- Feb 8, 2012, 5:41:45 PM (15 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 9 added
- 5 edited
- 3 copied
-
ChangeLog (modified) (1 diff)
-
fast/text/content-language-case-insensitivity-expected.txt (modified) (1 diff)
-
fast/text/content-language-case-insensitivity.html (modified) (2 diffs)
-
fast/text/content-language-empty-expected.txt (added)
-
fast/text/content-language-empty.html (copied) (copied from trunk/LayoutTests/fast/text/content-language-case-insensitivity.html ) (3 diffs)
-
fast/text/content-language-late-expected.txt (added)
-
fast/text/content-language-late.html (added)
-
fast/text/content-language-mapped-to-webkit-locale-expected.txt (modified) (1 diff)
-
fast/text/content-language-mapped-to-webkit-locale.html (modified) (2 diffs)
-
fast/text/content-language-multiple-expected.txt (added)
-
fast/text/content-language-multiple.html (added)
-
fast/text/content-language-no-content-expected.txt (added)
-
fast/text/content-language-no-content.html (copied) (copied from trunk/LayoutTests/fast/text/content-language-case-insensitivity.html ) (3 diffs)
-
fast/text/content-language-only-whitespace-expected.txt (added)
-
fast/text/content-language-only-whitespace.html (copied) (copied from trunk/LayoutTests/fast/text/content-language-mapped-to-webkit-locale.html ) (3 diffs)
-
fast/text/content-language-with-whitespace-expected.txt (added)
-
fast/text/content-language-with-whitespace.html (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r107152 r107159 1 2012-02-08 Matt Falkenhagen <falken@chromium.org> 2 3 Improve http-equiv content-language parsing 4 https://bugs.webkit.org/show_bug.cgi?id=77724 5 6 Reviewed by Alexey Proskuryakov. 7 8 Add more tests for mapping http-equiv content-language to -webkit-locale. The desired behavior of some 9 of these is not yet decided, so some of the tests currently fail and the expectations may change. See comments in bug and in the tests. 10 11 * fast/text/content-language-case-insensitivity-expected.txt: 12 * fast/text/content-language-case-insensitivity.html: Style fixes. 13 * fast/text/content-language-empty-expected.txt: Added. 14 * fast/text/content-language-empty.html: Added. 15 * fast/text/content-language-late-expected.txt: Added. 16 * fast/text/content-language-late.html: Added. 17 * fast/text/content-language-mapped-to-webkit-locale-expected.txt: 18 * fast/text/content-language-mapped-to-webkit-locale.html: Style fixes. 19 * fast/text/content-language-multiple-expected.txt: Added. 20 * fast/text/content-language-multiple.html: Added. 21 * fast/text/content-language-no-content-expected.txt: Added. 22 * fast/text/content-language-no-content.html: Added. 23 * fast/text/content-language-only-whitespace-expected.txt: Added. 24 * fast/text/content-language-only-whitespace.html: Added. 25 * fast/text/content-language-with-whitespace-expected.txt: Added. 26 * fast/text/content-language-with-whitespace.html: Added. 27 1 28 2012-02-08 Julien Chaffraix <jchaffraix@webkit.org> 2 29 -
trunk/LayoutTests/fast/text/content-language-case-insensitivity-expected.txt
r106632 r107159 1 1 Test for bug 76701: map content-language to -webkit-locale. This particular test tests that the matching of the http-equiv attribute to the content-language state is case insensitive. 2 2 3 PASS languageOfNode('x 1') is "ja-JP"3 PASS languageOfNode('x') is "ja-JP" 4 4 PASS successfullyParsed is true 5 5 -
trunk/LayoutTests/fast/text/content-language-case-insensitivity.html
r106632 r107159 13 13 </p> 14 14 <div id="console"></div> 15 <div id="x 1"/>15 <div id="x"></div> 16 16 <script> 17 17 function languageOfNode(id) { … … 19 19 return window.getComputedStyle(element).webkitLocale; 20 20 } 21 shouldBeEqualToString("languageOfNode('x1')", "ja-JP"); 22 23 var successfullyParsed = true; 21 shouldBeEqualToString("languageOfNode('x')", "ja-JP"); 24 22 </script> 25 23 <script src="../js/resources/js-test-post.js"></script> -
trunk/LayoutTests/fast/text/content-language-empty.html
r107157 r107159 2 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 3 <head> 4 <meta http-equiv="c ONtENT-LAnguAGE" content="ja-JP">4 <meta http-equiv="content-language" content=""> 5 5 <link rel="stylesheet" href="../js/resources/js-test-style.css"> 6 6 <script src="../js/resources/js-test-pre.js"></script> … … 8 8 <body> 9 9 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=76701">bug 76701</a>: 10 map content-language to -webkit-locale. This particular test tests that the 11 matching of the http-equiv attribute to the content-language state is case 12 insensitive. 10 map HTTP-EQUIV content-language to -webkit-locale. This particular test tests 11 that a content-language of empty string is ignored. This expectation may 12 change, see bug. HTML5 decrees that the meta element be ignored in case of the 13 empty string. It's unclear what other browsers do. 13 14 </p> 14 15 <div id="console"></div> 15 <div id="x1"/> 16 <div id="x"></div> 17 <div id="y" lang="ar"></div> 16 18 <script> 17 19 function languageOfNode(id) { … … 19 21 return window.getComputedStyle(element).webkitLocale; 20 22 } 21 shouldBeEqualToString("languageOfNode('x1')", "ja-JP"); 22 23 var successfullyParsed = true; 23 shouldBeEqualToString("languageOfNode('x')", "auto"); 24 shouldBeEqualToString("languageOfNode('y')", "ar"); 24 25 </script> 25 26 <script src="../js/resources/js-test-post.js"></script> -
trunk/LayoutTests/fast/text/content-language-mapped-to-webkit-locale-expected.txt
r106632 r107159 1 1 Test for bug 76701: map content-language to -webkit-locale. 2 2 3 PASS languageOfNode('x 1') is "zh-CN"4 PASS languageOfNode(' m1') is "ar"3 PASS languageOfNode('x') is "zh-CN" 4 PASS languageOfNode('y') is "ar" 5 5 PASS successfullyParsed is true 6 6 -
trunk/LayoutTests/fast/text/content-language-mapped-to-webkit-locale.html
r106632 r107159 10 10 map content-language to -webkit-locale.</p> 11 11 <div id="console"></div> 12 <div id="x 1"/>13 <div lang="ar" id="m1"/>12 <div id="x"></div> 13 <div id="y" lang="ar"></div> 14 14 <script> 15 15 function languageOfNode(id) { … … 17 17 return window.getComputedStyle(element).webkitLocale; 18 18 } 19 shouldBeEqualToString("languageOfNode('x1')", "zh-CN"); 20 shouldBeEqualToString("languageOfNode('m1')", "ar"); 21 22 var successfullyParsed = true; 19 shouldBeEqualToString("languageOfNode('x')", "zh-CN"); 20 shouldBeEqualToString("languageOfNode('y')", "ar"); 23 21 </script> 24 22 <script src="../js/resources/js-test-post.js"></script> -
trunk/LayoutTests/fast/text/content-language-no-content.html
r107157 r107159 2 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 3 <head> 4 <meta http-equiv="c ONtENT-LAnguAGE" content="ja-JP">4 <meta http-equiv="content-language"> 5 5 <link rel="stylesheet" href="../js/resources/js-test-style.css"> 6 6 <script src="../js/resources/js-test-pre.js"></script> … … 8 8 <body> 9 9 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=76701">bug 76701</a>: 10 map content-language to -webkit-locale. This particular test tests that the11 matching of the http-equiv attribute to the content-language state is case 12 insensitive.10 map HTTP-EQUIV content-language to -webkit-locale. This particular test tests that 11 a content-language with missing content is effectively ignored. This expectation 12 may change, see comments in bug. 13 13 </p> 14 14 <div id="console"></div> 15 <div id="x1"/> 15 <div id="x"></div> 16 <div id="y" lang="ar"></div> 16 17 <script> 17 18 function languageOfNode(id) { … … 19 20 return window.getComputedStyle(element).webkitLocale; 20 21 } 21 shouldBeEqualToString("languageOfNode('x1')", "ja-JP"); 22 23 var successfullyParsed = true; 22 shouldBeEqualToString("languageOfNode('x')", "auto"); 23 shouldBeEqualToString("languageOfNode('y')", "ar"); 24 24 </script> 25 25 <script src="../js/resources/js-test-post.js"></script> -
trunk/LayoutTests/fast/text/content-language-only-whitespace.html
r107157 r107159 2 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 3 <head> 4 <meta http-equiv="content-language" content="zh-CN"> 4 <meta http-equiv="content-language" content=" 5 "> 5 6 <link rel="stylesheet" href="../js/resources/js-test-style.css"> 6 7 <script src="../js/resources/js-test-pre.js"></script> … … 8 9 <body> 9 10 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=76701">bug 76701</a>: 10 map content-language to -webkit-locale.</p> 11 map HTTP-EQUIV content-language to -webkit-locale. This particular test tests 12 that a content-language with whitespace-only content is ignored. This 13 expectation may change, see bug. HTML5 decrees that the meta element be ignored 14 in case of whitespace only content. It's unclear what other browsers do.</p> 11 15 <div id="console"></div> 12 <div id="x 1"/>13 <div lang="ar" id="m1"/>16 <div id="x"></div> 17 <div id="y" lang="ar"></div> 14 18 <script> 15 19 function languageOfNode(id) { … … 17 21 return window.getComputedStyle(element).webkitLocale; 18 22 } 19 shouldBeEqualToString("languageOfNode('x1')", "zh-CN"); 20 shouldBeEqualToString("languageOfNode('m1')", "ar"); 21 22 var successfullyParsed = true; 23 shouldBeEqualToString("languageOfNode('x')", "auto"); 24 shouldBeEqualToString("languageOfNode('y')", "ar"); 23 25 </script> 24 26 <script src="../js/resources/js-test-post.js"></script>
Note:
See TracChangeset
for help on using the changeset viewer.