aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2011-09-07 11:30:22 -0400
committerDave Methvin <dave.methvin@gmail.com>2011-09-07 11:30:22 -0400
commit81c778b2cad268a6208544ae32d2ad5b023051a0 (patch)
tree33529a6dc854df37b27cb7a01071871636c879f8 /test/unit
parent8e8fa6dc1ad514b0fa20e41faddcb85693d0408a (diff)
downloadjquery-81c778b2cad268a6208544ae32d2ad5b023051a0.tar.gz
jquery-81c778b2cad268a6208544ae32d2ad5b023051a0.zip
Fix #10208. Check for `button` as well as `input` when performing the #7071 VML crash workaround for IE special-events submit code.
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/event.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/unit/event.js b/test/unit/event.js
index 4e475da06..c69ba8339 100644
--- a/test/unit/event.js
+++ b/test/unit/event.js
@@ -1633,7 +1633,7 @@ test("live with change", function(){
});
test("live with submit", function() {
- expect(5);
+ expect(7);
var count1 = 0, count2 = 0;
@@ -1659,6 +1659,10 @@ test("live with submit", function() {
equals( count1, 2, "Verify form submit." );
equals( count2, 2, "Verify body submit." );
+ jQuery("#testForm button[name=sub4]")[0].click();
+ equals( count1, 3, "Verify form submit." );
+ equals( count2, 3, "Verify body submit." );
+
jQuery("#testForm").die("submit");
jQuery("#testForm input[name=sub1]").die("click");
jQuery("body").die("submit");