stopPropagation and preventDefault are now separate functions

This commit is contained in:
ahocevar
2018-07-18 12:21:42 +02:00
parent b813937991
commit 4adab51768

View File

@@ -19,9 +19,9 @@ describe('ol.events.Event', function() {
event.preventDefault();
expect(event.propagationStopped).to.be(true);
});
it('is the same as #stopPropagation', function() {
it('does the same as #stopPropagation', function() {
const event = new Event('foo');
expect(event.stopPropagation).to.equal(event.preventDefault);
expect(event.stopPropagation()).to.equal(event.preventDefault());
});
});