aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRobert Katic <robert.katic@gmail.com>2010-03-25 14:58:41 +0100
committerjeresig <jeresig@gmail.com>2010-09-23 12:08:15 -0400
commitdc4c9abc39ce7eda44ff8878d476db1e57b7bc46 (patch)
treeb2cb8328ab6aabe3eaab5e22f1790f9e743ee92d /test
parentda5706c974f8ef720b3194179366e1096c19269e (diff)
downloadjquery-dc4c9abc39ce7eda44ff8878d476db1e57b7bc46.tar.gz
jquery-dc4c9abc39ce7eda44ff8878d476db1e57b7bc46.zip
Correcting some imperfections in test added in previous commit.
Diffstat (limited to 'test')
-rw-r--r--test/unit/event.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/unit/event.js b/test/unit/event.js
index a133a104c..6d0fd9b57 100644
--- a/test/unit/event.js
+++ b/test/unit/event.js
@@ -210,7 +210,7 @@ test("live/die(Object), delegate/undelegate(String, Object)", function() {
expect(6);
var clickCounter = 0, mouseoverCounter = 0,
- $p = jQuery("#firstp"), $a = $p.find("a");
+ $p = jQuery("#firstp"), $a = $p.find("a").first();
var events = {
click: function( event ) {
@@ -229,20 +229,20 @@ test("live/die(Object), delegate/undelegate(String, Object)", function() {
$p.delegate( "a", events, 2 );
trigger();
- equals( clickCounter, 3, "live/delegate(Object)" );
- equals( mouseoverCounter, 3, "live/delegate(Object)" );
+ equals( clickCounter, 3, "live/delegate" );
+ equals( mouseoverCounter, 3, "live/delegate" );
$p.undelegate( "a", events );
trigger();
- equals( clickCounter, 4, "undelegate(Object)" );
- equals( mouseoverCounter, 4, "undelegate(Object)" );
+ equals( clickCounter, 4, "undelegate" );
+ equals( mouseoverCounter, 4, "undelegate" );
$a.die( events );
trigger();
- equals( clickCounter, 4, "die(Object)" );
- equals( mouseoverCounter, 4, "die(Object)" );
+ equals( clickCounter, 4, "die" );
+ equals( mouseoverCounter, 4, "die" );
});
test("bind(), iframes", function() {