haikuwebkit/LayoutTests/fast/url/user-visible/rf.html

31 lines
1.1 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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://президент.рф./')", "'http://президент.рф./'");
shouldBe("test('http://www.президент.рф/')", "'http://www.президент.рф/'");
shouldBe("test('http://почта.президент.рф/')", "'http://почта.президент.рф/'");
shouldBe("test('http://0ж9.рф/')", "'http://0ж9.рф/'");
shouldBe("test('http://туда-сюда.рф/')", "'http://туда-сюда.рф/'");
shouldBe("test('http://прeзидент.рф/') /* spoof: Roman 'e' */", "'http://xn--e-htbdgf6aiiy.xn--p1ai/'");
shouldBe("test('http://caxap.рф/') /* spoof: all characters in 'caxap' are Roman */", "'http://caxap.xn--p1ai/'");
</script>
<script src="../../../resources/js-test-post.js"></script>
</body>
</html>