diff options
author | David Serduke <davidserduke@gmail.com> | 2007-11-28 16:38:34 +0000 |
---|---|---|
committer | David Serduke <davidserduke@gmail.com> | 2007-11-28 16:38:34 +0000 |
commit | 5c6c99361f315bfbc5829be3af94499c3a107f5d (patch) | |
tree | fd91da10a5d0ac59aeb57767bb50bf05fd9a6089 /test | |
parent | 0a755f6ab38d36ffda02f9ff5a6d606c24a94baa (diff) | |
download | jquery-5c6c99361f315bfbc5829be3af94499c3a107f5d.tar.gz jquery-5c6c99361f315bfbc5829be3af94499c3a107f5d.zip |
Fixed #1714 by adding a default empty string if the value is falsey.
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/core.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/unit/core.js b/test/unit/core.js index cea8c61e3..e71de2dba 100644 --- a/test/unit/core.js +++ b/test/unit/core.js @@ -881,9 +881,11 @@ test("$.extend(Object, Object)", function() { }); test("val()", function() { - expect(2); + expect(3); ok( $("#text1").val() == "Test", "Check for value of input element" ); ok( !$("#text1").val() == "", "Check for value of input element" ); + // ticket #1714 this caused a JS error in IE + ok( $("#first").val() == "", "Check a paragraph element to see if it has a value" ); }); test("val(String)", function() { |