Changeset 7124
- Timestamp:
- 06/26/07 00:27:30 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
spinoffs/prototype/branches/form/test/unit/form.html
r7121 r7124 100 100 </form> 101 101 102 <form id="fo rm_focus_hidden" style="display: none">102 <form id="focus_hidden" style="display: none" action=" "> 103 103 <input type="text" /> 104 104 </form> … … 299 299 // Form.Element.activate shouldn't raise an exception when the form or field is hidden 300 300 assertNothingRaised(function() { 301 $('fo rm_focus_hidden').focusFirstElement();301 $('focus_hidden').focusFirstElement(); 302 302 }); 303 303 }}, … … 401 401 402 402 testFormRequest: function() {with(this) { 403 request = $("form").request();403 var request = $("form").request(); 404 404 assert($("form").hasAttribute("method")); 405 405 assert(request.url.include("fixtures/empty.js?val1=4")); … … 417 417 assert(request.url.endsWith("unit/form.html"), 418 418 'wrong default action for form element with empty action attribute'); 419 request = $("focus_hidden").request({ method: 'post' }); 420 assert(request.url.endsWith("unit/form.html"), 421 'wrong default action for form element with spaces in action attribute'); 419 422 }}, 420 423