Remove enums from tests

This commit is contained in:
Peter Robins
2016-06-03 07:38:15 +00:00
parent d51fecd827
commit 06fd92353b
41 changed files with 379 additions and 435 deletions
+8 -9
View File
@@ -17,7 +17,7 @@ describe('ol.geom.MultiLineString', function() {
});
it('defaults to layout XY', function() {
expect(multiLineString.getLayout()).to.be(ol.geom.GeometryLayout.XY);
expect(multiLineString.getLayout()).to.be('XY');
});
it('has empty coordinates', function() {
@@ -58,7 +58,7 @@ describe('ol.geom.MultiLineString', function() {
});
it('has the expected layout', function() {
expect(multiLineString.getLayout()).to.be(ol.geom.GeometryLayout.XY);
expect(multiLineString.getLayout()).to.be('XY');
});
it('has the expected coordinates', function() {
@@ -110,7 +110,7 @@ describe('ol.geom.MultiLineString', function() {
});
it('has the expected layout', function() {
expect(multiLineString.getLayout()).to.be(ol.geom.GeometryLayout.XYZ);
expect(multiLineString.getLayout()).to.be('XYZ');
});
it('has the expected coordinates', function() {
@@ -139,11 +139,11 @@ describe('ol.geom.MultiLineString', function() {
beforeEach(function() {
multiLineString = new ol.geom.MultiLineString(
[[[1, 2, 3], [4, 5, 6]], [[7, 8, 9], [10, 11, 12]]],
ol.geom.GeometryLayout.XYM);
'XYM');
});
it('has the expected layout', function() {
expect(multiLineString.getLayout()).to.be(ol.geom.GeometryLayout.XYM);
expect(multiLineString.getLayout()).to.be('XYM');
});
it('has the expected coordinates', function() {
@@ -167,11 +167,11 @@ describe('ol.geom.MultiLineString', function() {
it('can return individual line strings', function() {
var lineString0 = multiLineString.getLineString(0);
expect(lineString0).to.be.an(ol.geom.LineString);
expect(lineString0.getLayout()).to.be(ol.geom.GeometryLayout.XYM);
expect(lineString0.getLayout()).to.be('XYM');
expect(lineString0.getCoordinates()).to.eql([[1, 2, 3], [4, 5, 6]]);
var lineString1 = multiLineString.getLineString(1);
expect(lineString1).to.be.an(ol.geom.LineString);
expect(lineString1.getLayout()).to.be(ol.geom.GeometryLayout.XYM);
expect(lineString1.getLayout()).to.be('XYM');
expect(lineString1.getCoordinates()).to.eql([[7, 8, 9], [10, 11, 12]]);
});
@@ -290,7 +290,7 @@ describe('ol.geom.MultiLineString', function() {
});
it('has the expected layout', function() {
expect(multiLineString.getLayout()).to.be(ol.geom.GeometryLayout.XYZM);
expect(multiLineString.getLayout()).to.be('XYZM');
});
it('has the expected coordinates', function() {
@@ -333,6 +333,5 @@ describe('ol.geom.MultiLineString', function() {
goog.require('ol.extent');
goog.require('ol.geom.GeometryLayout');
goog.require('ol.geom.LineString');
goog.require('ol.geom.MultiLineString');