]> source.dussan.org Git - jquery.git/commitdiff
Enforce expects in events.js (https://github.com/jquery/2012-dev-summit/issues/53...
authorJames Huston <james@jameshuston.net>
Mon, 15 Oct 2012 16:16:49 +0000 (12:16 -0400)
committerRick Waldron <waldron.rick@gmail.com>
Mon, 15 Oct 2012 16:16:49 +0000 (12:16 -0400)
test/unit/event.js

index 74d30dbb6610b05b732cbd79d4ee09d2bcdd8d53..48ba2df9110006fbba4e85c109505ec62bef3aa3 100644 (file)
@@ -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();
 
@@ -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) {