Bug 1203828 - Let test_mobile_data_ipv6.js really test the v4 or v6 ip addresses. r=jjong

This commit is contained in:
Edgar Chen 2015-09-11 11:57:53 +08:00
parent 52b6d44302
commit 1ed7758671

View File

@ -43,12 +43,12 @@ function doTest(aApnSettings, aHaveV4Address, aHaveV6Address) {
if (aHaveV4Address) { if (aHaveV4Address) {
ok(ips.value.reduce(function(aFound, aAddress) { ok(ips.value.reduce(function(aFound, aAddress) {
return aFound || aAddress.indexOf(":") < 0; return aFound || aAddress.indexOf(":") < 0;
}), "IPv4 address"); }, false), "IPv4 address");
} }
if (aHaveV6Address) { if (aHaveV6Address) {
ok(ips.value.reduce(function(aFound, aAddress) { ok(ips.value.reduce(function(aFound, aAddress) {
return aFound || aAddress.indexOf(":") > 0; return aFound || aAddress.indexOf(":") > 0;
}), "IPv6 address"); }, false), "IPv6 address");
} }
}) })
.then(() => setDataEnabledAndWait(false)); .then(() => setDataEnabledAndWait(false));