Bug 1227138 - Fix browser_AddonWatcher not to fail if system add-ons are present. r=Mossop

This commit is contained in:
Mark Banner 2015-11-23 19:45:24 +00:00
Родитель 0d59eff344
Коммит fbca33b0b0
1 изменённых файлов: 4 добавлений и 0 удалений

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

@ -61,6 +61,10 @@ var burn_rubber = Task.async(function*({histogramName, topic, expectedReason, pr
for (let i = 0; i < 5; ++i) {
info(`Preparing add-on watcher for attempt ${i}`);
let wait = new Promise(resolve => AddonWatcher.init((id, reason) => {
// Ensure we're only looking for this add-on.
if (id != ADDON_ID) {
return;
}
Assert.equal(id, ADDON_ID, "The add-on watcher has detected the misbehaving addon");
info(`Reason: ${reason}, expected ${expectedReason}`);
if (reason == expectedReason) {