File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change 68
68
} ) ;
69
69
} ) ;
70
70
71
- test ( "binds remove of portrait and landscape classes resize/ orientation fired" , function ( ) {
72
- expect ( 2 ) ;
71
+ test ( "binds remove of portrait and landscape classes orientation fired" , function ( ) {
72
+ expect ( 1 ) ;
73
73
74
74
$ . Event . prototype . orientation = "foo" ;
75
75
76
- $ ( window ) . bind ( "orientationchange.htmlclass resize.htmlclass " , function ( event ) {
76
+ $ ( window ) . bind ( "orientationchange.htmlclass" , function ( event ) {
77
77
ok ( ! $ ( "html" ) . hasClass ( "portrait landscape" ) ) ;
78
78
start ( ) ;
79
79
} ) ;
80
80
81
- $ ( "html" ) . addClass ( "portrait landscape" ) ;
82
- $ ( window ) . trigger ( "resize.htmlclass" ) ;
83
-
84
81
$ ( "html" ) . addClass ( "portrait landscape" ) ;
85
82
$ ( window ) . trigger ( "orientationchange.htmlclass" ) ;
86
83
stop ( ) ;
87
84
} ) ;
88
85
89
- test ( "sets break point class additions on resize/ orientation change" , function ( ) {
86
+ test ( "sets break point class additions on orientation change" , function ( ) {
90
87
$ . fn . width = function ( ) { return 1900 ; } ;
91
88
92
89
$ ( "html" ) . removeClass ( "min-width-320px" ) ;
93
- $ ( window ) . trigger ( "resize .htmlclass" ) ;
90
+ $ ( window ) . trigger ( "orientationchange .htmlclass" ) ;
94
91
ok ( $ ( "html" ) . hasClass ( "min-width-320px" ) ) ;
95
92
} ) ;
96
93
} ) ( jQuery ) ;
You can’t perform that action at this time.
0 commit comments