X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Fmanipulation.js;h=7521c767f9c0af4fd75f49a69856a11db3bd9f37;hb=261b7efb5f86a5c9a3de8434f3cad858101e4249;hp=03f8f32c8e7666745f1183067f5c779c165a16eb;hpb=c97e914d40a8a24b47f2b6ef4f706b5367d94ee2;p=jquery.git diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js index 03f8f32..7521c76 100644 --- a/test/unit/manipulation.js +++ b/test/unit/manipulation.js @@ -619,7 +619,7 @@ test("clone() on XML nodes", function() { } test("val()", function() { - expect(9); + expect(11); document.getElementById('text1').value = "bla"; equals( jQuery("#text1").val(), "bla", "Check for modified value of input element" ); @@ -641,6 +641,11 @@ test("val()", function() { equals( jQuery('#option3e').val(), 'no value', 'Call val() on a option element with no value attribute' ); + equals( jQuery('#option3a').val(), '', 'Call val() on a option element with no value attribute' ); + + jQuery('#select3').val(""); + same( jQuery('#select3').val(), [''], 'Call val() on a multiple="multiple" select' ); + }); var testVal = function(valueObj) {