jQuery 1.5.1 testing

John Kremer jkkremer at gmail.com
Mon Mar 21 21:27:34 UTC 2011


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://fluidproject.org/pipermail/fluid-work/attachments/20110321/4db73627/attachment.html>


More information about the fluid-work mailing list