From bd4c1f8da6ace275fb041cfd82d0b3a554ffb019 Mon Sep 17 00:00:00 2001 From: Bart van den Eijnden Date: Tue, 15 Dec 2015 09:42:51 +0100 Subject: [PATCH] Fix up failing KML test in Firefox --- test/spec/ol/format/kmlformat.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/spec/ol/format/kmlformat.test.js b/test/spec/ol/format/kmlformat.test.js index dd333ec30e..2daac96ad1 100644 --- a/test/spec/ol/format/kmlformat.test.js +++ b/test/spec/ol/format/kmlformat.test.js @@ -2790,7 +2790,7 @@ describe('ol.format.KML', function() { var nl = format.readNetworkLinks(text); expect(nl).to.have.length(2); expect(nl[0].name).to.be('bar'); - expect(nl[0].href).to.be('bar/bar.kml'); + expect(nl[0].href.replace(window.location.href, '')).to.be('bar/bar.kml'); expect(nl[1].href).to.be('http://foo.com/foo.kml'); });