Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Tweak live-blur() test to silence a IE8 swarm fail.

  • Loading branch information...
commit 92b06d302cc8e94d52e0c60c9167ec17606984f3 1 parent a18645c
@dmethvin dmethvin authored
Showing with 8 additions and 9 deletions.
  1. +8 −9 test/unit/event.js
View
17 test/unit/event.js
@@ -1497,15 +1497,14 @@ test(".live()/.die()", function() {
jQuery("#nothiddendiv div").die("click");
// div must have a tabindex to be focusable
- jQuery("#nothiddendiv div").attr("tabindex", "0")[0].focus();
-
- jQuery("#nothiddendiv div").live("blur", function(){
- ok( true, "Live div trigger blur." );
- });
-
- jQuery("#nothiddendiv div").trigger("blur");
-
- jQuery("#nothiddendiv div").die("blur");
+ jQuery("#nothiddendiv div")
+ .attr("tabindex", "0")
+ .live("blur", function(){
+ ok( true, "Live div trigger blur." );
+ })
+ .focus()
+ .trigger("blur")
+ .die("blur");
});
test("die all bound events", function(){
Please sign in to comment.
Something went wrong with that request. Please try again.