Changeset 4220
- Timestamp:
- 12/18/07 17:19:33 (8 months ago)
- Location:
- trunk/jquery
- Files:
-
- 2 modified
-
src/core.js (modified) (1 diff)
-
test/unit/core.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/jquery/src/core.js
r4217 r4220 420 420 } 421 421 422 return undefined; 422 423 } 423 424 -
trunk/jquery/test/unit/core.js
r4217 r4220 1030 1030 1031 1031 test("val()", function() { 1032 expect( 3);1032 expect(4); 1033 1033 ok( $("#text1").val() == "Test", "Check for value of input element" ); 1034 1034 ok( !$("#text1").val() == "", "Check for value of input element" ); 1035 1035 // ticket #1714 this caused a JS error in IE 1036 1036 ok( $("#first").val() == "", "Check a paragraph element to see if it has a value" ); 1037 ok( $([]).val() === undefined, "Check an empty jQuery object will return undefined from val" ); 1037 1038 }); 1038 1039