Skip to content
Permalink
Browse files

Added a test case for $("<option>test</option>")[0].selected (bug #2050

…).
  • Loading branch information
jeresig committed Dec 14, 2007
1 parent 7120b56 commit 14a3a5bf9d65d9910a730d53208e3dccb34e3704
Showing with 3 additions and 1 deletion.
  1. +3 −1 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() {

0 comments on commit 14a3a5b

Please sign in to comment.
You can’t perform that action at this time.