Add tests for constraint validation by the form element

1.Validate the form element with various controls
2.Invalid event must be fired at the invalid control
3.The invalid event must be cancelable

Signed-off-by: xiaojunwu <xiaojunx.a.wu@intel.com>