aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorVeaceslav Grimalschi <grimalschi@yandex.ru>2014-10-08 15:24:55 +0400
committerDave Methvin <dave.methvin@gmail.com>2014-12-07 21:28:20 -0500
commit4467ed606ab0a9b28ed495e682576910937fa5e0 (patch)
treee524c39b72a2f034d405f68f21bfe11076fb83ab /test
parentbc1cb122db30be034b3da84ee2546c86e2a5268f (diff)
downloadjquery-4467ed606ab0a9b28ed495e682576910937fa5e0.tar.gz
jquery-4467ed606ab0a9b28ed495e682576910937fa5e0.zip
Event: Fully clean up events in unit test
Closes gh-1685
Diffstat (limited to 'test')
-rw-r--r--test/unit/event.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/unit/event.js b/test/unit/event.js
index 652d83945..7e2bc26b6 100644
--- a/test/unit/event.js
+++ b/test/unit/event.js
@@ -992,6 +992,7 @@ test("trigger() bubbling", function() {
equal( win, 4, "doc bubble" );
// manually clean up events from elements outside the fixture
+ jQuery(window).off("click");
jQuery(document).off("click");
jQuery("html, body, #qunit-fixture").off("click");
});
@@ -2036,7 +2037,7 @@ test("Non DOM element events", function() {
ok( true, "Event on non-DOM object triggered" );
});
- jQuery(o).trigger("nonelementobj");
+ jQuery(o).trigger("nonelementobj").off("nonelementobj");
});
test("inline handler returning false stops default", function() {