mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1114713 - Fix intermittent test failures by removing a event-cycling setTimeout call. r=mikedeboer
This commit is contained in:
parent
9300901951
commit
630a6653ea
@ -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() {
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user