Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
fixup tests (firefox)
Browse files Browse the repository at this point in the history
  • Loading branch information
vicb committed May 8, 2015
1 parent 08d3987 commit eef1a59
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions test/microtasks.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@ describe('Microtasks', function () {
setTimeout(function() {
expect(microtaskExecuted).toEqual(true);
done();
});
}, 0);
});

// For some reason this test does not work in Jasmine ('mat1.mit' is scheduled after the last
// setTimeout) everything is fine when executed from a browser window with zone-microtask.js
// loaded
// Does not currently work with Firefox, see https://bugzilla.mozilla.org/show_bug.cgi?id=1162013
xit('should correctly schedule microtasks vs macrotasks', function(done) {
var log = ['+root'];

Expand All @@ -30,19 +28,19 @@ describe('Microtasks', function () {
log.push('mat1.mit');
});
log.push('-mat1');
});
}, 0);

setTimeout(function() {
log.push('mat2');
});
}, 0);

setTimeout(function() {
expect(log).toEqual([
'+root', '-root', 'root.mit',
'+mat1', '-mat1', 'mat1.mit',
'mat2']);
done();
});
}, 0);

log.push('-root');
});
Expand Down

0 comments on commit eef1a59

Please sign in to comment.