X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;ds=sidebyside;f=test%2Funit%2Fattributes.js;h=a483195a4cbb16b641b574d05814d57721558be0;hb=5057ff9f43017f673894584358ca95c8753b65d4;hp=de7754b8a5482f2e01e96c658c8d520b89d8b914;hpb=c7c067723006b0dfbb123c1a36885580a587d091;p=jquery.git
diff --git a/test/unit/attributes.js b/test/unit/attributes.js
index de7754b..a483195 100644
--- a/test/unit/attributes.js
+++ b/test/unit/attributes.js
@@ -307,7 +307,7 @@ test("removeAttr(String)", function() {
});
test("val()", function() {
- expect(20);
+ expect(23);
document.getElementById('text1').value = "bla";
equals( jQuery("#text1").val(), "bla", "Check for modified value of input element" );
@@ -342,6 +342,14 @@ test("val()", function() {
jQuery('#select4').attr('disabled', true);
same( jQuery('#select4').val(), ['2', '3'], 'Call val() on disabled multiple="multiple" select' );
+ equals( jQuery('#select5').val(), "3", "Check value on ambiguous select." );
+
+ jQuery('#select5').val(1);
+ equals( jQuery('#select5').val(), "1", "Check value on ambiguous select." );
+
+ jQuery('#select5').val(3);
+ equals( jQuery('#select5').val(), "3", "Check value on ambiguous select." );
+
var checks = jQuery("").appendTo("#form");
same( checks.serialize(), "", "Get unchecked values." );