Bug 1062631 - Handle nuked window references in tilt tests. r=paul

This commit is contained in:
Bobby Holley 2014-09-08 13:36:22 -07:00
parent 52e67dbdb5
commit 33f4e1dcb0

View File

@ -17,6 +17,10 @@ function notification(win, topic) {
}
let { notification, window } = expected.shift();
if (Cu.isDeadWrapper(window)) {
// Sometimes we end up with a nuked window reference here :-(
return;
}
is(topic, notification, "Saw the expected notification");
is(win, window, "Saw the expected window");
}