Remove goog.dom.ViewportSizeMonitor
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user