Rename _ol_formnat_WKT_ to WKT

This commit is contained in:
Tim Schaub
2017-12-17 02:18:33 -07:00
parent c6650285f5
commit 9889370c08
5 changed files with 134 additions and 134 deletions

View File

@@ -1,12 +1,12 @@
import _ol_Feature_ from '../../../../src/ol/Feature.js';
import Point from '../../../../src/ol/geom/Point.js';
import _ol_format_WKT_ from '../../../../src/ol/format/WKT.js';
import WKT from '../../../../src/ol/format/WKT.js';
import {transform} from '../../../../src/ol/proj.js';
describe('ol.format.WKT', function() {
var format = new _ol_format_WKT_();
var format = new WKT();
describe('#readProjectionFromText', function() {
it('returns the default projection', function() {
@@ -779,7 +779,7 @@ describe('ol.format.WKT', function() {
});
it('GeometryCollection split / merged correctly', function() {
format = new _ol_format_WKT_({splitCollection: true});
format = new WKT({splitCollection: true});
var wkt = 'GEOMETRYCOLLECTION(POINT(4 6),LINESTRING(4 6,7 10))';
var features = format.readFeatures(wkt);
expect(features.length).to.eql(2);

View File

@@ -3,7 +3,7 @@
import _ol_Sphere_ from '../../../src/ol/Sphere.js';
import _ol_format_WKT_ from '../../../src/ol/format/WKT.js';
import WKT from '../../../src/ol/format/WKT.js';
import GeometryCollection from '../../../src/ol/geom/GeometryCollection.js';
import LineString from '../../../src/ol/geom/LineString.js';
import MultiLineString from '../../../src/ol/geom/MultiLineString.js';
@@ -95,7 +95,7 @@ describe('ol.Sphere', function() {
before(function(done) {
afterLoadText('spec/ol/format/wkt/illinois.wkt', function(wkt) {
try {
var format = new _ol_format_WKT_();
var format = new WKT();
geometry = format.readGeometry(wkt);
} catch (e) {
done(e);
@@ -187,7 +187,7 @@ describe('ol.Sphere.getArea()', function() {
before(function(done) {
afterLoadText('spec/ol/format/wkt/illinois.wkt', function(wkt) {
try {
var format = new _ol_format_WKT_();
var format = new WKT();
geometry = format.readGeometry(wkt);
} catch (e) {
done(e);