mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1203828 - Let test_mobile_data_ipv6.js really test the v4 or v6 ip addresses. r=jjong
This commit is contained in:
parent
52b6d44302
commit
1ed7758671
@ -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));
|
||||||
|
Loading…
Reference in New Issue
Block a user