@@ -693,10 +693,10 @@ describe('$location', function() {
693
693
694
694
describe ( 'location watch' , function ( ) {
695
695
696
- it ( 'should not update browser if only the empty hash fragment is cleared by updating the search ' , function ( ) {
696
+ it ( 'should not update browser if only the empty hash fragment is cleared' , function ( ) {
697
697
initService ( { supportHistory : true } ) ;
698
- mockUpBrowser ( { initialUrl :'http://new.com/a/b#' , baseHref :'/base/' } ) ;
699
- inject ( function ( $rootScope , $ browser, $location ) {
698
+ mockUpBrowser ( { initialUrl : 'http://new.com/a/b#' , baseHref : '/base/' } ) ;
699
+ inject ( function ( $browser , $rootScope ) {
700
700
$browser . url ( 'http://new.com/a/b' ) ;
701
701
var $browserUrl = spyOnlyCallsWithArgs ( $browser , 'url' ) . and . callThrough ( ) ;
702
702
$rootScope . $digest ( ) ;
@@ -707,8 +707,8 @@ describe('$location', function() {
707
707
708
708
it ( 'should not replace browser url if only the empty hash fragment is cleared' , function ( ) {
709
709
initService ( { html5Mode : true , supportHistory : true } ) ;
710
- mockUpBrowser ( { initialUrl :'http://new.com/#' , baseHref : '/' } ) ;
711
- inject ( function ( $browser , $location ) {
710
+ mockUpBrowser ( { initialUrl : 'http://new.com/#' , baseHref : '/' } ) ;
711
+ inject ( function ( $browser , $location , $window ) {
712
712
expect ( $browser . url ( ) ) . toBe ( 'http://new.com/#' ) ;
713
713
expect ( $location . absUrl ( ) ) . toBe ( 'http://new.com/' ) ;
714
714
} ) ;
0 commit comments