mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-05 22:35:14 +08:00
fix onhashchange tests for IE
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user