Skip to content

Commit

Permalink
Enforce expects in events.js (jquery/2012-dev-summit#53) Closes gh-961
Browse files Browse the repository at this point in the history
  • Loading branch information
james-huston authored and rwaldron committed Oct 15, 2012
1 parent 57aa797 commit 6ac8716
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/unit/event.js
Expand Up @@ -420,6 +420,8 @@ test("bind/delegate bubbling, isDefaultPrevented", function() {
});

test("bind(), iframes", function() {
expect( 1 );

// events don't work with iframes, see #939 - this test fails in IE because of contentDocument
var doc = jQuery("#loadediframe").contents();

Expand Down Expand Up @@ -2511,6 +2513,8 @@ test("delegate with change", function(){
});

test("delegate with submit", function() {
expect( 2 );

var count1 = 0, count2 = 0;

jQuery("#body").delegate("#testForm", "submit", function(ev) {
Expand Down

1 comment on commit 6ac8716

@mikesherov
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏 👏 👏 👏

Please sign in to comment.