mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 04:27:37 +00:00
8 lines
307 B
JavaScript
8 lines
307 B
JavaScript
function run_test() {
|
|
var dns = Components.classes["@mozilla.org/network/dns-service;1"]
|
|
.getService(Components.interfaces.nsIDNSService);
|
|
var rec = dns.resolve("localhost", 0);
|
|
var answer = rec.getNextAddrAsString();
|
|
do_check_true(answer == "127.0.0.1" || answer == "::1");
|
|
}
|