Skip to content

Commit

Permalink
skip requestAnimFrame test for now
Browse files Browse the repository at this point in the history
  • Loading branch information
mourner committed Jan 26, 2024
1 parent 795df55 commit f97d539
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions spec/suites/core/UtilSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,18 +96,20 @@ describe('Util', () => {
});

describe('#requestAnimFrame', () => {
it('calles a function on next frame, unless canceled', (done) => {
// TODO: skip this test for now because of https://github.com/Leaflet/Leaflet/issues/9230
it.skip('calls a function on next frame, unless canceled', (done) => {
const spy = sinon.spy(),
foo = {};

Util.requestAnimFrame(spy);
const spyId = Util.requestAnimFrame(spy);

Util.requestAnimFrame(function () {
expect(this).to.eql(foo);
expect(spy.called).to.be.false;
done();
}, foo);

Util.cancelAnimFrame(spy);
Util.cancelAnimFrame(spyId);
});
});

Expand Down

0 comments on commit f97d539

Please sign in to comment.