Title: [121656] trunk/LayoutTests
- Revision
- 121656
- Author
- [email protected]
- Date
- 2012-07-01 22:21:57 -0700 (Sun, 01 Jul 2012)
Log Message
Move platform/qt/fast/jsnavigator-language.html to fast/js
https://bugs.webkit.org/show_bug.cgi?id=90261
Patch by Kihong Kwon <[email protected]> on 2012-07-01
Reviewed by Ryosuke Niwa.
Efl needs a test case for navigator.language.
This test case is modified for all ports.
* fast/js/navigator-language-expected.txt: Copied from LayoutTests/platform/qt/fast/js/navigator-language-expected.txt.
* fast/js/navigator-language.html: Copied from LayoutTests/platform/qt/fast/js/navigator-language.html.
* platform/qt/fast/js/navigator-language-expected.txt: Removed.
* platform/qt/fast/js/navigator-language.html: Removed.
Modified Paths
Added Paths
Removed Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (121655 => 121656)
--- trunk/LayoutTests/ChangeLog 2012-07-02 05:11:32 UTC (rev 121655)
+++ trunk/LayoutTests/ChangeLog 2012-07-02 05:21:57 UTC (rev 121656)
@@ -1,3 +1,18 @@
+2012-07-01 Kihong Kwon <[email protected]>
+
+ Move platform/qt/fast/jsnavigator-language.html to fast/js
+ https://bugs.webkit.org/show_bug.cgi?id=90261
+
+ Reviewed by Ryosuke Niwa.
+
+ Efl needs a test case for navigator.language.
+ This test case is modified for all ports.
+
+ * fast/js/navigator-language-expected.txt: Copied from LayoutTests/platform/qt/fast/js/navigator-language-expected.txt.
+ * fast/js/navigator-language.html: Copied from LayoutTests/platform/qt/fast/js/navigator-language.html.
+ * platform/qt/fast/js/navigator-language-expected.txt: Removed.
+ * platform/qt/fast/js/navigator-language.html: Removed.
+
2012-07-01 Keishi Hattori <[email protected]>
[Chromium] Fix TestExpectations error caused in r121652.
Added: trunk/LayoutTests/fast/js/navigator-language-expected.txt (0 => 121656)
--- trunk/LayoutTests/fast/js/navigator-language-expected.txt (rev 0)
+++ trunk/LayoutTests/fast/js/navigator-language-expected.txt 2012-07-02 05:21:57 UTC (rev 121656)
@@ -0,0 +1,9 @@
+Check return value of navigator.language.
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS language is 'en-us'
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
Added: trunk/LayoutTests/fast/js/navigator-language.html (0 => 121656)
--- trunk/LayoutTests/fast/js/navigator-language.html (rev 0)
+++ trunk/LayoutTests/fast/js/navigator-language.html 2012-07-02 05:21:57 UTC (rev 121656)
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src=""
+</head>
+<body>
+<script>
+description(
+ "<pre>Check return value of navigator.language."
+);
+
+if (window.layoutTestController) {
+ layoutTestController.dumpAsText();
+ layoutTestController.setPOSIXLocale("en_US.iso88591");
+}
+
+var language = navigator.language.toLowerCase();
+if (language.length == 2)
+ shouldBe("language", "'en'");
+else
+ shouldBe("language", "'en-us'");
+</script>
+<script src=""
+</body>
+</html>
Deleted: trunk/LayoutTests/platform/qt/fast/js/navigator-language-expected.txt (121655 => 121656)
--- trunk/LayoutTests/platform/qt/fast/js/navigator-language-expected.txt 2012-07-02 05:11:32 UTC (rev 121655)
+++ trunk/LayoutTests/platform/qt/fast/js/navigator-language-expected.txt 2012-07-02 05:21:57 UTC (rev 121656)
@@ -1,9 +0,0 @@
-Test for bug 29653: [Qt] Qt-based browser fails to show the right language translation.
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-PASS navigator.language.toLowerCase() is 'en-us'
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
Deleted: trunk/LayoutTests/platform/qt/fast/js/navigator-language.html (121655 => 121656)
--- trunk/LayoutTests/platform/qt/fast/js/navigator-language.html 2012-07-02 05:11:32 UTC (rev 121655)
+++ trunk/LayoutTests/platform/qt/fast/js/navigator-language.html 2012-07-02 05:21:57 UTC (rev 121656)
@@ -1,31 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<html>
-<head>
-<script src=""
-</head>
-<body>
-<!--
-Language tags should follow specification RFC5646:
-http://tools.ietf.org/html/rfc5646
-2.1.1. Formatting of Language Tags
-
- At all times, language tags and their subtags, including private use
- and extensions, are to be treated as case insensitive: there exist
- conventions for the capitalization of some of the subtags, but these
- MUST NOT be taken to carry meaning.
--->
-<script>
-description(
-"<pre>Test for bug 29653: [Qt] Qt-based browser fails to show the right language translation."
-);
-
-if (window.layoutTestController) {
- layoutTestController.dumpAsText();
- layoutTestController.setPOSIXLocale("en_US.iso88591");
-}
-
-shouldBe("navigator.language.toLowerCase()", "'en-us'");
-</script>
-<script src=""
-</body>
-</html>
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes