Bug 1114713 - Fix intermittent test failures by removing a event-cycling setTimeout call. r=mikedeboer

This commit is contained in:
Mark Banner 2015-02-24 13:17:29 +00:00
parent 9300901951
commit 630a6653ea
2 changed files with 2 additions and 6 deletions

View File

@ -18,7 +18,7 @@ describe("loop.contacts", function() {
var fakeWindow;
var notifications;
beforeEach(function(done) {
beforeEach(function() {
sandbox = sinon.sandbox.create();
navigator.mozLoop = {
getStrings: function(entityName) {
@ -40,8 +40,6 @@ describe("loop.contacts", function() {
loop.shared.mixins.setRootObject(fakeWindow);
document.mozL10n.initialize(navigator.mozLoop);
// XXX prevent a race whenever mozL10n hasn't been initialized yet
setTimeout(done, 0);
});
afterEach(function() {

View File

@ -17,7 +17,7 @@ describe("loop.panel", function() {
var fakeXHR, fakeWindow, fakeMozLoop;
var requests = [];
beforeEach(function(done) {
beforeEach(function() {
sandbox = sinon.sandbox.create();
fakeXHR = sandbox.useFakeXMLHttpRequest();
requests = [];
@ -65,8 +65,6 @@ describe("loop.panel", function() {
};
document.mozL10n.initialize(navigator.mozLoop);
// XXX prevent a race whenever mozL10n hasn't been initialized yet
setTimeout(done, 0);
});
afterEach(function() {