Bug 520743 - [xpcshell-tests] some Places unit tests fail when 'werror' is on, part 3. r=mak

This commit is contained in:
Jae-Seong Lee 2009-10-09 20:17:07 +02:00
Родитель 906a8a6a23
Коммит 3ca48f9a99
1 изменённых файлов: 6 добавлений и 4 удалений

Просмотреть файл

@ -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])