Run tests in real browsers with Karma

This commit is contained in:
Tim Schaub
2017-06-25 12:38:12 -06:00
parent 44558b7c89
commit 44a976eb60
7 changed files with 191 additions and 14 deletions

View File

@@ -3334,7 +3334,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.replace(window.location.href, '')).to.be('bar/bar.kml');
expect(nl[0].href.replace(window.location.origin, '')).to.be('/bar/bar.kml');
expect(nl[1].href).to.be('http://foo.com/foo.kml');
});