Just wrote a few jQuery 1.5.1 tests for .val():
var test_value = "abc";
jqUnit.assertEquals("Testing textbox value", test_value,
$("#textbox-with-value").val());
jqUnit.assertEquals("Testing textbox value", test_value,
$("#textbox-with-value").val(undefined));
jqUnit.assertEquals("Testing textbox value", test_value,
$("#textbox-with-value").val(""));
});
The only passing test is the top one, and passing a falsy returns the jQuery
object as oppose to the value of the object.
There are many tests that are failing in the migration over to 1.5.1 due to
this issue.
https://github.com/jkkremer/infusion/tree/FLUID-4113
https://github.com/jkkremer/infusion/commit/39a684870854dfe205f8a6589b2c1526aba47697
_______________________________________________________
fluid-work mailing list - [email protected]
To unsubscribe, change settings or access archives,
see http://fluidproject.org/mailman/listinfo/fluid-work