Stop ignoring global leaks

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.
This commit is contained in:
Tim Schaub
2013-03-23 05:50:54 -06:00
parent 53fc6f3989
commit d9ab545985

View File

@@ -30,8 +30,7 @@
<script>
mocha.setup({
ui: 'bdd',
bail: false,
ignoreLeaks: true
bail: false
});
</script>
<script type="text/javascript" src="../build/proj4js/lib/proj4js-combined.js"></script>
@@ -58,6 +57,15 @@
</script>
<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.
*/
goog.getUid(this);
if (window.mochaPhantomJS) {
mochaPhantomJS.run();
} else {