aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2007-12-14 01:57:29 +0000
committerJohn Resig <jeresig@gmail.com>2007-12-14 01:57:29 +0000
commit14a3a5bf9d65d9910a730d53208e3dccb34e3704 (patch)
treea4a2f69ab76713465dd6e1b5fb6b2506a1780043 /test/unit
parent7120b56caa235ae9315aab0634d9ff7e21c300fd (diff)
downloadjquery-14a3a5bf9d65d9910a730d53208e3dccb34e3704.tar.gz
jquery-14a3a5bf9d65d9910a730d53208e3dccb34e3704.zip
Added a test case for $("<option>test</option>")[0].selected (bug #2050).
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/core.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/unit/core.js b/test/unit/core.js
index 12b405644..03f89d1cc 100644
--- a/test/unit/core.js
+++ b/test/unit/core.js
@@ -152,7 +152,7 @@ test("isFunction", function() {
var foo = false;
test("$('html')", function() {
- expect(5);
+ expect(6);
reset();
foo = false;
@@ -169,6 +169,8 @@ test("$('html')", function() {
var j = $("<span>hi</span> there <!-- mon ami -->");
ok( j.length >= 2, "Check node,textnode,comment creation (some browsers delete comments)" );
+
+ ok( !$("<option>test</option>")[0].selected, "Make sure that options are auto-selected #2050" );
});
test("$('html', context)", function() {