Always load a gated URL polyfill when testing

Otherwise the tests fail to run in MS Edge, whose user agent doesn't
trigger the inclusion of the polyfill without `always`.
This commit is contained in:
Marc Jansen
2016-10-19 14:28:08 +02:00
parent e542c622a7
commit 3ce93a51ed

View File

@@ -15,7 +15,9 @@
<script type="text/javascript" src="../node_modules/mocha/mocha.js"></script>
<script type="text/javascript" src="../node_modules/proj4/dist/proj4.js"></script>
<script type="text/javascript" src="test-extensions.js"></script>
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=requestAnimationFrame,Element.prototype.classList,URL"></script>
<!-- load polyfills: Always load the URL polyfill in a gated form so that
MS Edge has it -->
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=requestAnimationFrame,Element.prototype.classList,URL|always|gated"></script>
<script>
if (typeof initMochaPhantomJS === 'function') {
initMochaPhantomJS()