File tree 1 file changed +0
-16
lines changed
1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -198,22 +198,6 @@ describe("UrlRouter", function () {
198
198
expect ( $location . hash ( ) ) . toBe ( 'frag' ) ;
199
199
} ) ) ;
200
200
201
- it ( 'can push location changes that include a #fragment' , inject ( function ( $urlRouter , $location ) {
202
- // html5mode disabled
203
- $lp . html5Mode ( false ) ;
204
- expect ( $lp . html5Mode ( ) ) . toBe ( false ) ;
205
- $urlRouter . push ( new UrlMatcher ( '/hello/:name' ) , { name : 'world' , '#' : 'frag' } ) ;
206
- expect ( $location . url ( ) ) . toBe ( '/hello/world#frag' ) ;
207
- expect ( $location . hash ( ) ) . toBe ( 'frag' ) ;
208
-
209
- // html5mode enabled
210
- $lp . html5Mode ( true ) ;
211
- expect ( $lp . html5Mode ( ) ) . toBe ( true ) ;
212
- $urlRouter . push ( new UrlMatcher ( '/hello/:name' ) , { name : 'world' , '#' : 'frag' } ) ;
213
- expect ( $location . url ( ) ) . toBe ( '/hello/world#frag' ) ;
214
- expect ( $location . hash ( ) ) . toBe ( 'frag' ) ;
215
- } ) ) ;
216
-
217
201
it ( 'can read and sync a copy of location URL' , inject ( function ( $urlRouter , $location ) {
218
202
$location . url ( '/old' ) ;
219
203
You can’t perform that action at this time.
0 commit comments