test_dns_service_wrap.js (460B)
1 // 2 // Run test script in content process instead of chrome (xpcshell's default) 3 // 4 5 const overrideService = Cc[ 6 "@mozilla.org/network/native-dns-override;1" 7 ].getService(Ci.nsINativeDNSResolverOverride); 8 9 // This domain used to resolve. We fake the response to avoid 10 // depending on the network for automated tests. 11 overrideService.addIPOverride("xn--bcher-kva.org", "127.0.0.1"); 12 13 function run_test() { 14 run_test_in_child("../unit/test_dns_service.js"); 15 }