Changeset View
Changeset View
Standalone View
Standalone View
src/core/__tests__/event-stop-and-kill.js
| Show All 27 Lines | describe('Event Stop/Kill', function() { | ||||
| it('should kill (stop and prevent) an event', function() { | it('should kill (stop and prevent) an event', function() { | ||||
| expect(target.getPrevented()).toBe(false); | expect(target.getPrevented()).toBe(false); | ||||
| expect(target.getStopped()).toBe(false); | expect(target.getStopped()).toBe(false); | ||||
| target.kill(); | target.kill(); | ||||
| expect(target.getPrevented()).toBe(true); | expect(target.getPrevented()).toBe(true); | ||||
| expect(target.getStopped()).toBe(true); | expect(target.getStopped()).toBe(true); | ||||
| }); | }); | ||||
| }); | }); | ||||