Ticket #9609: form_serialize_test_9609.diff
| File form_serialize_test_9609.diff, 1.0 kB (added by kangax, 1 year ago) |
|---|
-
form.html
old new 124 124 <input type="checkbox" id="ffe_ti2_checkbox" tabindex="0" /> 125 125 <input type="submit" id="ffe_ti2_submit" tabindex="1" /> 126 126 </form> 127 128 <form id="trouble_form"> 129 <input type="text" name="length" value="foo" /> 130 <input type="text" name="toString" value="55" /> 131 <input type="text" name="valueOf" value="bar" /> 132 </form> 127 133 </div> 128 134 129 135 <!-- Tests follow --> … … 400 406 $('form').serialize({ submit: false })); 401 407 assertHashEqual({ val1:4, action:'blah' }, 402 408 $('form').serialize({ submit: 'inexistent' })); 409 410 // try to serialize form containing toString, valueOf and length -named elements 411 assertHashEqual({ length: 'foo', toString: 55, valueOf: 'bar' }, 412 $('trouble_form').serialize(true)); 403 413 }}, 404 414 405 415 testFormMethodsOnExtendedElements: function() {with(this) {