cakephp/cakephp — pull request #397 by cjsaylor (2012-01-08 04:34:07+00:00)
Title: 1.3 - Form helper to allow for html5 "number" type of text input

The html5 input type of "number" was not available with the form helper. This is problematic when creating forms for mobile devices. The only way to notify mobile device browsers that the keyboard should be a numeric keyboard is by the input type.

I've updated the `FormHelper::input` method to allow for type of "number" and associated the mapping of "integer" for field types to this new input method.

Also, while I was writing the test case for this change, I noticed the `testTextFieldGenerationForFloats()` was missing the assert call (essentially this method was never being called in the test case), so I added the assert for this test.