Add tests and documentation for goog.events.*

This commit is contained in:
Andreas Hocevar
2016-01-31 20:33:33 +01:00
parent cf4556f115
commit 8d0ef13505
5 changed files with 258 additions and 31 deletions

View File

@@ -75,7 +75,7 @@ describe('ol.pointer.MouseSource', function() {
touches: touches,
changedTouches: touches
};
ol.events.fireListeners(target, type, event);
target.dispatchEvent(event);
}
function simulateEvent(type, x, y) {
@@ -85,7 +85,7 @@ describe('ol.pointer.MouseSource', function() {
clientY: y,
target: target
};
ol.events.fireListeners(target, type, event);
target.dispatchEvent(event);
}
});