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

Commit eef1a59

Browse files
committed
fixup tests (firefox)
1 parent 08d3987 commit eef1a59

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

test/microtasks.spec.js

+5-7
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,10 @@ describe('Microtasks', function () {
1111
setTimeout(function() {
1212
expect(microtaskExecuted).toEqual(true);
1313
done();
14-
});
14+
}, 0);
1515
});
1616

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

@@ -30,19 +28,19 @@ describe('Microtasks', function () {
3028
log.push('mat1.mit');
3129
});
3230
log.push('-mat1');
33-
});
31+
}, 0);
3432

3533
setTimeout(function() {
3634
log.push('mat2');
37-
});
35+
}, 0);
3836

3937
setTimeout(function() {
4038
expect(log).toEqual([
4139
'+root', '-root', 'root.mit',
4240
'+mat1', '-mat1', 'mat1.mit',
4341
'mat2']);
4442
done();
45-
});
43+
}, 0);
4644

4745
log.push('-root');
4846
});

0 commit comments

Comments
 (0)