Fix failing tests in IE9

This commit is contained in:
Bart van den Eijnden
2014-12-10 11:59:02 +01:00
parent ae8f5149a7
commit c3beae6b16
4 changed files with 16 additions and 13 deletions

View File

@@ -53,7 +53,7 @@ describe('ol.format.OSMXML', function() {
' <tag k="name" v="3"/>' +
' <nd ref="1" />' +
' <nd ref="2" />' +
' </node>' +
' </way>' +
'</osm>';
var fs = format.readFeatures(text);
expect(fs).to.have.length(3);

View File

@@ -8,10 +8,10 @@
<Value><MultiLineString xmlns="http://www.opengis.net/gml" srsName="EPSG:900913">
<lineStringMember>
<LineString srsName="EPSG:900913">
<posList>-12279454.47665902 6741885.67968707 -12064207.805007964
6732101.740066567 -11941908.559751684 6595126.585379533
-12240318.718177011 6507071.128795006 -12416429.631346056
6604910.52500003</posList>
<posList>-12279454 6741885 -12064207
6732101 -11941908 6595126
-12240318 6507071 -12416429
6604910</posList>
</LineString>
</lineStringMember>
</MultiLineString></Value>

View File

@@ -296,11 +296,11 @@ describe('ol.format.WFS', function() {
var updateFeature = new ol.Feature();
updateFeature.setGeometryName('the_geom');
updateFeature.setGeometry(new ol.geom.MultiLineString([[
[-12279454.47665902, 6741885.67968707],
[-12064207.805007964, 6732101.740066567],
[-11941908.559751684, 6595126.585379533],
[-12240318.718177011, 6507071.128795006],
[-12416429.631346056, 6604910.52500003]
[-12279454, 6741885],
[-12064207, 6732101],
[-11941908, 6595126],
[-12240318, 6507071],
[-12416429, 6604910]
]]));
updateFeature.setId('FAULTS.4455');
var serialized = format.writeTransaction(null, [updateFeature], null, {

View File

@@ -48,9 +48,12 @@ describe('ol.source.TileWMS', function() {
expect(tile).to.be.an(ol.ImageTile);
var uri = new goog.Uri(tile.src_);
var queryData = uri.getQueryData();
expect(queryData.get('BBOX')).to.be(
'-10331840.239250705,-15341217.324948015,' +
'-4696291.017841229,-9705668.103538537');
var bbox = queryData.get('BBOX').split(',');
var expected = [-10331840.239250705, -15341217.324948015,
-4696291.017841229, -9705668.103538537];
for (var i = 0, ii = bbox.length; i < ii; ++i) {
expect(parseFloat(bbox[i])).to.roughlyEqual(expected[i], 1e-9);
}
expect(queryData.get('HEIGHT')).to.be('288');
expect(queryData.get('WIDTH')).to.be('288');
});