Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 393c1c7

Browse files
committed
chore(jqLite): remove leftover attachEvent/detachEvent from tests
1 parent 874cac8 commit 393c1c7

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

test/jqLiteSpec.js

+1-6
Original file line numberDiff line numberDiff line change
@@ -1003,12 +1003,7 @@ describe('jqLite', function() {
10031003
expect(type).toEqual('hashchange');
10041004
eventFn = fn;
10051005
},
1006-
removeEventListener: noop,
1007-
attachEvent: function(type, fn){
1008-
expect(type).toEqual('onhashchange');
1009-
eventFn = fn;
1010-
},
1011-
detachEvent: noop
1006+
removeEventListener: noop
10121007
};
10131008
window.window = window;
10141009

test/ng/browserSpecs.js

-5
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,7 @@ function MockWindow() {
2929
events[name].push(listener);
3030
};
3131

32-
this.attachEvent = function(name, listener) {
33-
this.addEventListener(name.substr(2), listener);
34-
};
35-
3632
this.removeEventListener = noop;
37-
this.detachEvent = noop;
3833

3934
this.fire = function(name) {
4035
forEach(events[name], function(fn) {

0 commit comments

Comments
 (0)