1
0
Fork 0
firefox/netwerk/test/unit/test_bug1913022.js
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

12 lines
393 B
JavaScript

"use strict";
function run_test() {
Services.prefs.setBoolPref("network.IDN_show_punycode", true);
try {
var uri = Services.io.newURI("http://xn--jos-dma.example.net.ch/");
Assert.equal(uri.asciiHost, "xn--jos-dma.example.net.ch");
Assert.equal(uri.displayHost, "xn--jos-dma.example.net.ch");
} finally {
Services.prefs.clearUserPref("network.IDN_show_punycode");
}
}