Remove goog.dom.ViewportSizeMonitor

This commit is contained in:
Andreas Hocevar
2016-01-27 16:28:18 +01:00
parent 7e27ba1d42
commit 2b451e7893
5 changed files with 14 additions and 62 deletions

View File

@@ -28,22 +28,6 @@
<script type="text/javascript">
/**
* The goog.dom.ViewportSizeMonitor (used in map.js) creates a global leak
* by setting goog.UID_PROPERTY_ on the monitored window. In order to test
* that we don't have other global leaks, we preemptively set the property
* so Mocha can compare the global before and after our tests.
*
* In addition, calling ol.events.listen on the global object (as done
* in deviceorientation.js) creates a second leak by setting
* ol.events.listenER_MAP_PROP_ on the global object.
*
* We preemptively set both of these properties so Mocha can compare the
* global before and after tests. The call to ol.events.listen also
* calls goog.getUid.
*/
ol.events.listen(this, 'test', function() {});
var errors = [];
var runner = mocha.run(function(evt) {
if (window.callPhantom) {