https://bugs.webkit.org/show_bug.cgi?id=148761
<rdar://problem/
22569849>
Reviewed by Tim Horton.
* fast/url/user-visible/srb-expected.txt: Added.
* fast/url/user-visible/srb.html: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@189381
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2015-09-04 Alexey Proskuryakov <ap@apple.com>
+
+ Test Serbian ".срб" domain support
+ https://bugs.webkit.org/show_bug.cgi?id=148761
+ <rdar://problem/22569849>
+
+ Reviewed by Tim Horton.
+
+ * fast/url/user-visible/srb-expected.txt: Added.
+ * fast/url/user-visible/srb.html: Added.
+
2015-09-04 Beth Dakin <bdakin@apple.com>
Rubber-stamped by Tim Horton.
--- /dev/null
+Test IDN behavior for .срб top level domain.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS test('http://православнајапородица.срб/') is 'http://православнајапородица.срб/'
+PASS test('http://www.свеовде.од.срб/') is 'http://www.свеовде.од.срб/'
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
--- /dev/null
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<script src="../../../resources/js-test-pre.js"></script>
+</head>
+<body>
+<script>
+
+description("Test IDN behavior for .срб top level domain.");
+
+function test(url)
+{
+ var domURL = new URL(url);
+ return internals.userVisibleString(domURL);
+}
+
+shouldBe("test('http://православнајапородица.срб/')", "'http://православнајапородица.срб/'");
+shouldBe("test('http://www.свеовде.од.срб/')", "'http://www.свеовде.од.срб/'");
+
+</script>
+<script src="../../../resources/js-test-post.js"></script>
+</body>
+</html>