mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-30 10:12:59 +00:00
add simple unit test for the dns service
This commit is contained in:
parent
76e443fcb0
commit
a394544602
6
netwerk/test/unit/test_dns_service.js
Normal file
6
netwerk/test/unit/test_dns_service.js
Normal file
@ -0,0 +1,6 @@
|
||||
function run_test() {
|
||||
var dns = Components.classes["@mozilla.org/network/dns-service;1"]
|
||||
.getService(Components.interfaces.nsIDNSService);
|
||||
var rec = dns.resolve("localhost", 0);
|
||||
do_check_eq(rec.getNextAddrAsString(), "127.0.0.1");
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user