@@ -57,7 +57,7 @@ test("jQuery()", function() {
5757 equal ( jQuery ( undefined ) . length , 0 , "jQuery(undefined) === jQuery([])" ) ;
5858 equal ( jQuery ( null ) . length , 0 , "jQuery(null) === jQuery([])" ) ;
5959 equal ( jQuery ( "" ) . length , 0 , "jQuery('') === jQuery([])" ) ;
60- equal ( jQuery ( obj ) . selector , "div" , "jQuery(jQueryObj) == jQueryObj" ) ;
60+ deepEqual ( jQuery ( obj ) . get ( ) , obj . get ( ) , "jQuery(jQueryObj) == jQueryObj" ) ;
6161
6262 // Invalid #id goes to Sizzle which will throw an error (gh-1682)
6363 try {
@@ -156,49 +156,6 @@ test("jQuery(selector, context)", function() {
156156 deepEqual ( jQuery ( "div p" , jQuery ( "#qunit-fixture" ) ) . get ( ) , q ( "sndp" , "en" , "sap" ) , "Basic selector with jQuery object as context" ) ;
157157} ) ;
158158
159- test ( "selector state" , function ( ) {
160- expect ( 18 ) ;
161-
162- var test ;
163-
164- test = jQuery ( undefined ) ;
165- equal ( test . selector , "" , "Empty jQuery Selector" ) ;
166- equal ( test . context , undefined , "Empty jQuery Context" ) ;
167-
168- test = jQuery ( document ) ;
169- equal ( test . selector , "" , "Document Selector" ) ;
170- equal ( test . context , document , "Document Context" ) ;
171-
172- test = jQuery ( document . body ) ;
173- equal ( test . selector , "" , "Body Selector" ) ;
174- equal ( test . context , document . body , "Body Context" ) ;
175-
176- test = jQuery ( "#qunit-fixture" ) ;
177- equal ( test . selector , "#qunit-fixture" , "#qunit-fixture Selector" ) ;
178- equal ( test . context , document , "#qunit-fixture Context" ) ;
179-
180- test = jQuery ( "#notfoundnono" ) ;
181- equal ( test . selector , "#notfoundnono" , "#notfoundnono Selector" ) ;
182- equal ( test . context , document , "#notfoundnono Context" ) ;
183-
184- test = jQuery ( "#qunit-fixture" , document ) ;
185- equal ( test . selector , "#qunit-fixture" , "#qunit-fixture Selector" ) ;
186- equal ( test . context , document , "#qunit-fixture Context" ) ;
187-
188- test = jQuery ( "#qunit-fixture" , document . body ) ;
189- equal ( test . selector , "#qunit-fixture" , "#qunit-fixture Selector" ) ;
190- equal ( test . context , document . body , "#qunit-fixture Context" ) ;
191-
192- // Test cloning
193- test = jQuery ( test ) ;
194- equal ( test . selector , "#qunit-fixture" , "#qunit-fixture Selector" ) ;
195- equal ( test . context , document . body , "#qunit-fixture Context" ) ;
196-
197- test = jQuery ( document . body ) . find ( "#qunit-fixture" ) ;
198- equal ( test . selector , "#qunit-fixture" , "#qunit-fixture find Selector" ) ;
199- equal ( test . context , document . body , "#qunit-fixture find Context" ) ;
200- } ) ;
201-
202159test ( "globalEval" , function ( ) {
203160 expect ( 3 ) ;
204161 Globals . register ( "globalEvalTest" ) ;
0 commit comments