зеркало из https://github.com/mozilla/gecko-dev.git
Bug 520743 - [xpcshell-tests] some Places unit tests fail when 'werror' is on, part 3. r=mak
This commit is contained in:
Родитель
906a8a6a23
Коммит
3ca48f9a99
|
@ -671,12 +671,14 @@ function flagSwitchMatches(aQuery1, aQuery2)
|
||||||
{
|
{
|
||||||
if (aQuery1[this.flag] && aQuery2[this.flag]) {
|
if (aQuery1[this.flag] && aQuery2[this.flag]) {
|
||||||
for (let p in this.subswitches) {
|
for (let p in this.subswitches) {
|
||||||
if (aQuery1[p] instanceof Ci.nsIURI) {
|
if (p in aQuery1 && p in aQuery2) {
|
||||||
if (!aQuery1[p].equals(aQuery2[p]))
|
if (aQuery1[p] instanceof Ci.nsIURI) {
|
||||||
|
if (!aQuery1[p].equals(aQuery2[p]))
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (aQuery1[p] !== aQuery2[p])
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if (aQuery1[p] !== aQuery2[p])
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (aQuery1[this.flag] || aQuery2[this.flag])
|
else if (aQuery1[this.flag] || aQuery2[this.flag])
|
||||||
|
|
Загрузка…
Ссылка в новой задаче