Skip to content

Commit 33f74e3

Browse files
committed
Correcting some imperfections in test added with commit 0ed8cc6.
1 parent 0ed8cc6 commit 33f74e3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/unit/event.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ test("live/die(Object), delegate/undelegate(String, Object)", function() {
210210
expect(6);
211211

212212
var clickCounter = 0, mouseoverCounter = 0,
213-
$p = jQuery("#firstp"), $a = $p.find("a");
213+
$p = jQuery("#firstp"), $a = $p.find("a").first();
214214

215215
var events = {
216216
click: function( event ) {
@@ -229,20 +229,20 @@ test("live/die(Object), delegate/undelegate(String, Object)", function() {
229229
$p.delegate( "a", events, 2 );
230230

231231
trigger();
232-
equals( clickCounter, 3, "live/delegate(Object)" );
233-
equals( mouseoverCounter, 3, "live/delegate(Object)" );
232+
equals( clickCounter, 3, "live/delegate" );
233+
equals( mouseoverCounter, 3, "live/delegate" );
234234

235235
$p.undelegate( "a", events );
236236

237237
trigger();
238-
equals( clickCounter, 4, "undelegate(Object)" );
239-
equals( mouseoverCounter, 4, "undelegate(Object)" );
238+
equals( clickCounter, 4, "undelegate" );
239+
equals( mouseoverCounter, 4, "undelegate" );
240240

241241
$a.die( events );
242242

243243
trigger();
244-
equals( clickCounter, 4, "die(Object)" );
245-
equals( mouseoverCounter, 4, "die(Object)" );
244+
equals( clickCounter, 4, "die" );
245+
equals( mouseoverCounter, 4, "die" );
246246
});
247247

248248
test("bind(), iframes", function() {

0 commit comments

Comments
 (0)