Fixes #8456. Make sure parent is not null before crawling into its lap, so mouseenter is triggered on a mouseover event.
This commit is contained in:
parent
6c124d3dd4
commit
2ac4067a63
2 changed files with 15 additions and 1 deletions
|
@ -683,6 +683,20 @@ test("hover()", function() {
|
|||
equals( times, 4, "hover handlers fired" );
|
||||
});
|
||||
|
||||
test("mouseover triggers mouseenter", function() {
|
||||
expect(1);
|
||||
|
||||
var count = 0,
|
||||
elem = jQuery("<a />");
|
||||
elem.mouseenter(function () {
|
||||
count++;
|
||||
});
|
||||
elem.trigger('mouseover');
|
||||
equals(count, 1, "make sure mouseover triggers a mouseenter" );
|
||||
|
||||
elem.remove();
|
||||
});
|
||||
|
||||
test("trigger() shortcuts", function() {
|
||||
expect(6);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue