File tree Expand file tree Collapse file tree 1 file changed +15
-9
lines changed Expand file tree Collapse file tree 1 file changed +15
-9
lines changed Original file line number Diff line number Diff line change @@ -1843,21 +1843,27 @@ test("window resize", function() {
1843
1843
1844
1844
ok ( ! jQuery ( window ) . data ( "__events__" ) , "Make sure all the events are gone." ) ;
1845
1845
} ) ;
1846
- test ( "focusin bubbles" , function ( ) {
1846
+
1847
+ test ( "focusin bubbles" , function ( ) {
1847
1848
//create an input and focusin on it
1848
- var input = jQuery ( "<input/>" ) ,
1849
- order = 0 ;
1850
- input . appendTo ( document . body ) ;
1851
- jQuery ( document . body ) . bind ( "focusin.focusinBubblesTest" , function ( ) {
1849
+ var input = jQuery ( "<input/>" ) , order = 0 ;
1850
+
1851
+ input . prependTo ( "body" ) ;
1852
+
1853
+ jQuery ( "body" ) . bind ( "focusin.focusinBubblesTest" , function ( ) {
1852
1854
equals ( 1 , order ++ , "focusin on the body second" )
1853
- } )
1855
+ } ) ;
1856
+
1854
1857
input . bind ( "focusin.focusinBubblesTest" , function ( ) {
1855
1858
equals ( 0 , order ++ , "focusin on the element first" )
1856
- } )
1859
+ } ) ;
1860
+
1857
1861
input [ 0 ] . focus ( ) ;
1858
1862
input . remove ( ) ;
1859
- jQuery ( document . body ) . unbind ( "focusin.focusinBubblesTest" ) ;
1860
- } )
1863
+
1864
+ jQuery ( "body" ) . unbind ( "focusin.focusinBubblesTest" ) ;
1865
+ } ) ;
1866
+
1861
1867
/*
1862
1868
test("jQuery(function($) {})", function() {
1863
1869
stop();
You can’t perform that action at this time.
0 commit comments