mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
fix onhashchange tests for IE
This commit is contained in:
parent
4c71824a69
commit
0ad39dde4f
1 changed files with 6 additions and 1 deletions
|
|
@ -371,7 +371,12 @@ describe('browser', function(){
|
|||
expect(type).toEqual('hashchange');
|
||||
onHashChngListener = listener;
|
||||
},
|
||||
removeEventListener: angular.noop
|
||||
attachEvent: function(type, listener) {
|
||||
expect(type).toEqual('onhashchange');
|
||||
onHashChngListener = listener;
|
||||
},
|
||||
removeEventListener: angular.noop,
|
||||
detachEvent: angular.noop
|
||||
};
|
||||
fakeWindow.onhashchange = true;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue