Commit 14a3a5bf authored by John Resig's avatar John Resig

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

parent 7120b56c
...@@ -152,7 +152,7 @@ test("isFunction", function() { ...@@ -152,7 +152,7 @@ test("isFunction", function() {
var foo = false; var foo = false;
test("$('html')", function() { test("$('html')", function() {
expect(5); expect(6);
reset(); reset();
foo = false; foo = false;
...@@ -169,6 +169,8 @@ test("$('html')", function() { ...@@ -169,6 +169,8 @@ test("$('html')", function() {
var j = $("<span>hi</span> there <!-- mon ami -->"); var j = $("<span>hi</span> there <!-- mon ami -->");
ok( j.length >= 2, "Check node,textnode,comment creation (some browsers delete comments)" ); 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() { test("$('html', context)", function() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment