From 14a3a5bf9d65d9910a730d53208e3dccb34e3704 Mon Sep 17 00:00:00 2001 From: John Resig Date: Fri, 14 Dec 2007 01:57:29 +0000 Subject: [PATCH] Added a test case for $("")[0].selected (bug #2050). --- test/unit/core.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/unit/core.js b/test/unit/core.js index 12b4056..03f89d1 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 = $("hi there "); ok( j.length >= 2, "Check node,textnode,comment creation (some browsers delete comments)" ); + + ok( !$("")[0].selected, "Make sure that options are auto-selected #2050" ); }); test("$('html', context)", function() { -- 1.7.10.4