diff --git a/src/ol/format/featureformat.js b/src/ol/format/featureformat.js index d06f7a1b51..d480625e80 100644 --- a/src/ol/format/featureformat.js +++ b/src/ol/format/featureformat.js @@ -85,7 +85,7 @@ ol.format.Feature.prototype.getType = goog.abstractMethod; /** * Read a single feature from a source. * - * @param {ArrayBuffer|Document|Node|Object|string} source Source. + * @param {Document|Node|Object|string} source Source. * @param {olx.format.ReadOptions=} opt_options Read options. * @return {ol.Feature} Feature. */ @@ -95,7 +95,7 @@ ol.format.Feature.prototype.readFeature = goog.abstractMethod; /** * Read all features from a source. * - * @param {ArrayBuffer|Document|Node|Object|string} source Source. + * @param {Document|Node|Object|string} source Source. * @param {olx.format.ReadOptions=} opt_options Read options. * @return {Array.} Features. */ @@ -105,7 +105,7 @@ ol.format.Feature.prototype.readFeatures = goog.abstractMethod; /** * Read a single geometry from a source. * - * @param {ArrayBuffer|Document|Node|Object|string} source Source. + * @param {Document|Node|Object|string} source Source. * @param {olx.format.ReadOptions=} opt_options Read options. * @return {ol.geom.Geometry} Geometry. */ @@ -115,7 +115,7 @@ ol.format.Feature.prototype.readGeometry = goog.abstractMethod; /** * Read the projection from a source. * - * @param {ArrayBuffer|Document|Node|Object|string} source Source. + * @param {Document|Node|Object|string} source Source. * @return {ol.proj.Projection} Projection. */ ol.format.Feature.prototype.readProjection = goog.abstractMethod; diff --git a/src/ol/format/geojsonformat.js b/src/ol/format/geojsonformat.js index 86547147b3..592c55930b 100644 --- a/src/ol/format/geojsonformat.js +++ b/src/ol/format/geojsonformat.js @@ -376,7 +376,7 @@ ol.format.GeoJSON.prototype.getExtensions = function() { * use `readFeatures` to read FeatureCollection source. * * @function - * @param {ArrayBuffer|Document|Node|Object|string} source Source. + * @param {Document|Node|Object|string} source Source. * @param {olx.format.ReadOptions=} opt_options Read options. * @return {ol.Feature} Feature. * @api stable @@ -389,7 +389,7 @@ ol.format.GeoJSON.prototype.readFeature; * FeatureCollection sources. * * @function - * @param {ArrayBuffer|Document|Node|Object|string} source Source. + * @param {Document|Node|Object|string} source Source. * @param {olx.format.ReadOptions=} opt_options Read options. * @return {Array.} Features. * @api stable @@ -453,7 +453,7 @@ ol.format.GeoJSON.prototype.readFeaturesFromObject = function( * Read a geometry from a GeoJSON source. * * @function - * @param {ArrayBuffer|Document|Node|Object|string} source Source. + * @param {Document|Node|Object|string} source Source. * @param {olx.format.ReadOptions=} opt_options Read options. * @return {ol.geom.Geometry} Geometry. * @api stable @@ -475,7 +475,7 @@ ol.format.GeoJSON.prototype.readGeometryFromObject = function( * Read the projection from a GeoJSON source. * * @function - * @param {ArrayBuffer|Document|Node|Object|string} source Source. + * @param {Document|Node|Object|string} source Source. * @return {ol.proj.Projection} Projection. * @api stable */ diff --git a/src/ol/format/gml/gmlbaseformat.js b/src/ol/format/gml/gmlbaseformat.js index 4cf69833be..c6da053a46 100644 --- a/src/ol/format/gml/gmlbaseformat.js +++ b/src/ol/format/gml/gmlbaseformat.js @@ -590,7 +590,7 @@ ol.format.GMLBase.prototype.readGeometryFromNode = * Read all features from a GML FeatureCollection. * * @function - * @param {ArrayBuffer|Document|Node|Object|string} source Source. + * @param {Document|Node|Object|string} source Source. * @param {olx.format.ReadOptions=} opt_options Options. * @return {Array.} Features. * @api stable diff --git a/src/ol/format/gpxformat.js b/src/ol/format/gpxformat.js index 74868da1b9..0d07c74754 100644 --- a/src/ol/format/gpxformat.js +++ b/src/ol/format/gpxformat.js @@ -438,7 +438,7 @@ ol.format.GPX.prototype.handleReadExtensions_ = function(features) { * Read the first feature from a GPX source. * * @function - * @param {ArrayBuffer|Document|Node|Object|string} source Source. + * @param {Document|Node|Object|string} source Source. * @param {olx.format.ReadOptions=} opt_options Read options. * @return {ol.Feature} Feature. * @api stable @@ -472,7 +472,7 @@ ol.format.GPX.prototype.readFeatureFromNode = function(node, opt_options) { * Read all features from a GPX source. * * @function - * @param {ArrayBuffer|Document|Node|Object|string} source Source. + * @param {Document|Node|Object|string} source Source. * @param {olx.format.ReadOptions=} opt_options Read options. * @return {Array.} Features. * @api stable @@ -508,7 +508,7 @@ ol.format.GPX.prototype.readFeaturesFromNode = function(node, opt_options) { * Read the projection from a GPX source. * * @function - * @param {ArrayBuffer|Document|Node|Object|string} source Source. + * @param {Document|Node|Object|string} source Source. * @return {ol.proj.Projection} Projection. * @api stable */ diff --git a/src/ol/format/igcformat.js b/src/ol/format/igcformat.js index 98ee21aaec..08fd284084 100644 --- a/src/ol/format/igcformat.js +++ b/src/ol/format/igcformat.js @@ -101,7 +101,7 @@ ol.format.IGC.prototype.getExtensions = function() { * Read the feature from the IGC source. * * @function - * @param {ArrayBuffer|Document|Node|Object|string} source Source. + * @param {Document|Node|Object|string} source Source. * @param {olx.format.ReadOptions=} opt_options Read options. * @return {ol.Feature} Feature. * @api @@ -189,7 +189,7 @@ ol.format.IGC.prototype.readFeatureFromText = function(text, opt_options) { * feature, this will return the feature in an array. * * @function - * @param {ArrayBuffer|Document|Node|Object|string} source Source. + * @param {Document|Node|Object|string} source Source. * @param {olx.format.ReadOptions=} opt_options Read options. * @return {Array.} Features. * @api @@ -214,7 +214,7 @@ ol.format.IGC.prototype.readFeaturesFromText = function(text, opt_options) { * Read the projection from the IGC source. * * @function - * @param {ArrayBuffer|Document|Node|Object|string} source Source. + * @param {Document|Node|Object|string} source Source. * @return {ol.proj.Projection} Projection. * @api */ diff --git a/src/ol/format/kmlformat.js b/src/ol/format/kmlformat.js index e69b99d337..2d7150e3e5 100644 --- a/src/ol/format/kmlformat.js +++ b/src/ol/format/kmlformat.js @@ -1736,7 +1736,7 @@ ol.format.KML.prototype.readSharedStyleMap_ = function(node, objectStack) { * Read the first feature from a KML source. * * @function - * @param {ArrayBuffer|Document|Node|Object|string} source Source. + * @param {Document|Node|Object|string} source Source. * @param {olx.format.ReadOptions=} opt_options Read options. * @return {ol.Feature} Feature. * @api stable @@ -1769,7 +1769,7 @@ ol.format.KML.prototype.readFeatureFromNode = function(node, opt_options) { * Read all features from a KML source. * * @function - * @param {ArrayBuffer|Document|Node|Object|string} source Source. + * @param {Document|Node|Object|string} source Source. * @param {olx.format.ReadOptions=} opt_options Read options. * @return {Array.} Features. * @api stable @@ -1957,7 +1957,7 @@ ol.format.KML.prototype.readNetworkLinksFromNode = function(node) { * Read the projection from a KML source. * * @function - * @param {ArrayBuffer|Document|Node|Object|string} source Source. + * @param {Document|Node|Object|string} source Source. * @return {ol.proj.Projection} Projection. * @api stable */ diff --git a/src/ol/format/osmxmlformat.js b/src/ol/format/osmxmlformat.js index 8f7344617b..821b8f760c 100644 --- a/src/ol/format/osmxmlformat.js +++ b/src/ol/format/osmxmlformat.js @@ -203,7 +203,7 @@ ol.format.OSMXML.NODE_PARSERS_ = ol.xml.makeParsersNS( * Read all features from an OSM source. * * @function - * @param {ArrayBuffer|Document|Node|Object|string} source Source. + * @param {Document|Node|Object|string} source Source. * @param {olx.format.ReadOptions=} opt_options Read options. * @return {Array.} Features. * @api stable @@ -235,7 +235,7 @@ ol.format.OSMXML.prototype.readFeaturesFromNode = function(node, opt_options) { * Read the projection from an OSM source. * * @function - * @param {ArrayBuffer|Document|Node|Object|string} source Source. + * @param {Document|Node|Object|string} source Source. * @return {ol.proj.Projection} Projection. * @api stable */ diff --git a/src/ol/format/polylineformat.js b/src/ol/format/polylineformat.js index d50f0ce854..a8d369d1f6 100644 --- a/src/ol/format/polylineformat.js +++ b/src/ol/format/polylineformat.js @@ -268,7 +268,7 @@ ol.format.Polyline.encodeUnsignedInteger = function(num) { * in two dimensions and in latitude, longitude order. * * @function - * @param {ArrayBuffer|Document|Node|Object|string} source Source. + * @param {Document|Node|Object|string} source Source. * @param {olx.format.ReadOptions=} opt_options Read options. * @return {ol.Feature} Feature. * @api stable @@ -290,7 +290,7 @@ ol.format.Polyline.prototype.readFeatureFromText = function(text, opt_options) { * feature, this will return the feature in an array. * * @function - * @param {ArrayBuffer|Document|Node|Object|string} source Source. + * @param {Document|Node|Object|string} source Source. * @param {olx.format.ReadOptions=} opt_options Read options. * @return {Array.} Features. * @api stable @@ -312,7 +312,7 @@ ol.format.Polyline.prototype.readFeaturesFromText = * Read the geometry from the source. * * @function - * @param {ArrayBuffer|Document|Node|Object|string} source Source. + * @param {Document|Node|Object|string} source Source. * @param {olx.format.ReadOptions=} opt_options Read options. * @return {ol.geom.Geometry} Geometry. * @api stable @@ -344,7 +344,7 @@ ol.format.Polyline.prototype.readGeometryFromText = * Read the projection from a Polyline source. * * @function - * @param {ArrayBuffer|Document|Node|Object|string} source Source. + * @param {Document|Node|Object|string} source Source. * @return {ol.proj.Projection} Projection. * @api stable */ diff --git a/src/ol/format/topojsonformat.js b/src/ol/format/topojsonformat.js index 6174599d62..e849edd8ee 100644 --- a/src/ol/format/topojsonformat.js +++ b/src/ol/format/topojsonformat.js @@ -275,7 +275,7 @@ ol.format.TopoJSON.readFeatureFromGeometry_ = function(object, arcs, * Read all features from a TopoJSON source. * * @function - * @param {ArrayBuffer|Document|Node|Object|string} source Source. + * @param {Document|Node|Object|string} source Source. * @return {Array.} Features. * @api stable */ @@ -386,7 +386,7 @@ ol.format.TopoJSON.transformVertex_ = function(vertex, scale, translate) { * Read the projection from a TopoJSON source. * * @function - * @param {ArrayBuffer|Document|Node|Object|string} object Source. + * @param {Document|Node|Object|string} object Source. * @return {ol.proj.Projection} Projection. * @api stable */ diff --git a/src/ol/format/wfsformat.js b/src/ol/format/wfsformat.js index 6e17b47b32..72540c29e3 100644 --- a/src/ol/format/wfsformat.js +++ b/src/ol/format/wfsformat.js @@ -106,7 +106,7 @@ ol.format.WFS.SCHEMA_LOCATION = 'http://www.opengis.net/wfs ' + * Read all features from a WFS FeatureCollection. * * @function - * @param {ArrayBuffer|Document|Node|Object|string} source Source. + * @param {Document|Node|Object|string} source Source. * @param {olx.format.ReadOptions=} opt_options Read options. * @return {Array.} Features. * @api stable @@ -139,7 +139,7 @@ ol.format.WFS.prototype.readFeaturesFromNode = function(node, opt_options) { /** - * @param {ArrayBuffer|Document|Node|Object|string} source Source. + * @param {Document|Node|Object|string} source Source. * @return {ol.format.WFS.TransactionResponse|undefined} Transaction response. * @api stable */ @@ -160,7 +160,7 @@ ol.format.WFS.prototype.readTransactionResponse = function(source) { /** - * @param {ArrayBuffer|Document|Node|Object|string} source Source. + * @param {Document|Node|Object|string} source Source. * @return {ol.format.WFS.FeatureCollectionMetadata|undefined} * FeatureCollection metadata. * @api stable @@ -730,7 +730,7 @@ ol.format.WFS.prototype.writeTransaction = function(inserts, updates, deletes, * Read the projection from a WFS source. * * @function - * @param {ArrayBuffer|Document|Node|Object|string} source Source. + * @param {Document|Node|Object|string} source Source. * @return {?ol.proj.Projection} Projection. * @api stable */ diff --git a/src/ol/format/wktformat.js b/src/ol/format/wktformat.js index ce95e40045..c252bd30cd 100644 --- a/src/ol/format/wktformat.js +++ b/src/ol/format/wktformat.js @@ -209,7 +209,7 @@ ol.format.WKT.prototype.parse_ = function(wkt) { * Read a feature from a WKT source. * * @function - * @param {ArrayBuffer|Document|Node|Object|string} source Source. + * @param {Document|Node|Object|string} source Source. * @param {olx.format.ReadOptions=} opt_options Read options. * @return {ol.Feature} Feature. * @api stable @@ -235,7 +235,7 @@ ol.format.WKT.prototype.readFeatureFromText = function(text, opt_options) { * Read all features from a WKT source. * * @function - * @param {ArrayBuffer|Document|Node|Object|string} source Source. + * @param {Document|Node|Object|string} source Source. * @param {olx.format.ReadOptions=} opt_options Read options. * @return {Array.} Features. * @api stable @@ -270,7 +270,7 @@ ol.format.WKT.prototype.readFeaturesFromText = function(text, opt_options) { * Read a single geometry from a WKT source. * * @function - * @param {ArrayBuffer|Document|Node|Object|string} source Source. + * @param {Document|Node|Object|string} source Source. * @param {olx.format.ReadOptions=} opt_options Read options. * @return {ol.geom.Geometry} Geometry. * @api stable diff --git a/src/ol/format/wmsgetfeatureinfoformat.js b/src/ol/format/wmsgetfeatureinfoformat.js index 42068075d5..8441ea2526 100644 --- a/src/ol/format/wmsgetfeatureinfoformat.js +++ b/src/ol/format/wmsgetfeatureinfoformat.js @@ -124,7 +124,7 @@ ol.format.WMSGetFeatureInfo.prototype.readFeatures_ = * Read all features from a WMSGetFeatureInfo response. * * @function - * @param {ArrayBuffer|Document|Node|Object|string} source Source. + * @param {Document|Node|Object|string} source Source. * @param {olx.format.ReadOptions=} opt_options Options. * @return {Array.} Features. * @api stable diff --git a/test/spec/ol/binary.test.js b/test/spec/ol/binary.test.js deleted file mode 100644 index 5b7706f30a..0000000000 --- a/test/spec/ol/binary.test.js +++ /dev/null @@ -1,16 +0,0 @@ -goog.provide('ol.test.buffer'); - -describe('ol.binary.Buffer', function() { - - describe('constructor', function() { - - it('can be constructed without arguments', function() { - var instance = new ol.binary.Buffer(); - expect(instance).to.be.an(ol.binary.Buffer); - }); - - }); - -}); - -goog.require('ol.binary.Buffer'); diff --git a/test/spec/ol/format/binaryfeatureformat.test.js b/test/spec/ol/format/binaryfeatureformat.test.js deleted file mode 100644 index 4201e1609e..0000000000 --- a/test/spec/ol/format/binaryfeatureformat.test.js +++ /dev/null @@ -1,16 +0,0 @@ -goog.provide('ol.test.format.BinaryFeature'); - -describe('ol.format.BinaryFeature', function() { - - describe('constructor', function() { - - it('can be constructed without arguments', function() { - var instance = new ol.format.BinaryFeature(); - expect(instance).to.be.an(ol.format.BinaryFeature); - }); - - }); - -}); - -goog.require('ol.format.BinaryFeature');