Title: [189356] trunk/LayoutTests
- Revision
- 189356
- Author
- [email protected]
- Date
- 2015-09-04 10:43:49 -0700 (Fri, 04 Sep 2015)
Log Message
Add tests for different Unicode normalization forms in domain names
https://bugs.webkit.org/show_bug.cgi?id=148762
<rdar://problem/22569933>
Reviewed by Darin Adler.
* fast/url/user-visible/cyrillic-NFD-expected.txt: Added.
* fast/url/user-visible/cyrillic-NFD.html: Added.
Modified Paths
Added Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (189355 => 189356)
--- trunk/LayoutTests/ChangeLog 2015-09-04 17:43:19 UTC (rev 189355)
+++ trunk/LayoutTests/ChangeLog 2015-09-04 17:43:49 UTC (rev 189356)
@@ -1,3 +1,14 @@
+2015-09-04 Alexey Proskuryakov <[email protected]>
+
+ Add tests for different Unicode normalization forms in domain names
+ https://bugs.webkit.org/show_bug.cgi?id=148762
+ <rdar://problem/22569933>
+
+ Reviewed by Darin Adler.
+
+ * fast/url/user-visible/cyrillic-NFD-expected.txt: Added.
+ * fast/url/user-visible/cyrillic-NFD.html: Added.
+
2015-09-04 Chris Dumez <[email protected]>
Document.body should return the first body / frameset child of the html element
Added: trunk/LayoutTests/fast/url/user-visible/cyrillic-NFD-expected.txt (0 => 189356)
--- trunk/LayoutTests/fast/url/user-visible/cyrillic-NFD-expected.txt (rev 0)
+++ trunk/LayoutTests/fast/url/user-visible/cyrillic-NFD-expected.txt 2015-09-04 17:43:49 UTC (rev 189356)
@@ -0,0 +1,11 @@
+Test IDN behavior decomposed forms of Cyrillic domain name tags.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS test('http://спецодежда.онлайн/') is 'http://спецодежда.онлайн/'
+PASS test('http://спецодежда.онлайн/') is 'http://спецодежда.онлайн/'
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
Added: trunk/LayoutTests/fast/url/user-visible/cyrillic-NFD.html (0 => 189356)
--- trunk/LayoutTests/fast/url/user-visible/cyrillic-NFD.html (rev 0)
+++ trunk/LayoutTests/fast/url/user-visible/cyrillic-NFD.html 2015-09-04 17:43:49 UTC (rev 189356)
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<script src=""
+</head>
+<body>
+<script>
+
+description("Test IDN behavior decomposed forms of Cyrillic domain name tags.");
+
+function test(url)
+{
+ var domURL = new URL(url);
+ return internals.userVisibleString(domURL);
+}
+
+shouldBe("test('http://спецодежда.онла\u0439н/')", "'http://спецодежда.онлайн/'");
+shouldBe("test('http://спецодежда.онла\u0438\u0306н/')", "'http://спецодежда.онлайн/'");
+
+</script>
+<script src=""
+</body>
+</html>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes