Test Serbian ".срб" domain support
authorap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 4 Sep 2015 20:59:12 +0000 (20:59 +0000)
committerap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 4 Sep 2015 20:59:12 +0000 (20:59 +0000)
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

LayoutTests/ChangeLog
LayoutTests/fast/url/user-visible/srb-expected.txt [new file with mode: 0644]
LayoutTests/fast/url/user-visible/srb.html [new file with mode: 0644]

index 4e4c161..3b6b2c6 100644 (file)
@@ -1,3 +1,14 @@
+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.
diff --git a/LayoutTests/fast/url/user-visible/srb-expected.txt b/LayoutTests/fast/url/user-visible/srb-expected.txt
new file mode 100644 (file)
index 0000000..8e6a7ca
--- /dev/null
@@ -0,0 +1,11 @@
+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
+
diff --git a/LayoutTests/fast/url/user-visible/srb.html b/LayoutTests/fast/url/user-visible/srb.html
new file mode 100644 (file)
index 0000000..293c603
--- /dev/null
@@ -0,0 +1,24 @@
+<!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>