Skip to content

Commit

Permalink
fix specs
Browse files Browse the repository at this point in the history
  • Loading branch information
hpinkos committed Feb 26, 2018
1 parent 2912eee commit ae9d68f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Specs/DataSources/EllipsoidGeometryUpdaterSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ defineSuite([
'Core/DistanceDisplayCondition',
'Core/DistanceDisplayConditionGeometryInstanceAttribute',
'Core/JulianDate',
'Core/Math',
'Core/Quaternion',
'Core/TimeIntervalCollection',
'DataSources/ColorMaterialProperty',
Expand All @@ -28,6 +29,7 @@ defineSuite([
DistanceDisplayCondition,
DistanceDisplayConditionGeometryInstanceAttribute,
JulianDate,
CesiumMath,
Quaternion,
TimeIntervalCollection,
ColorMaterialProperty,
Expand Down Expand Up @@ -295,13 +297,13 @@ defineSuite([

var attributes = primitives.get(0).getGeometryInstanceAttributes(entity);
expect(attributes.show[0]).toEqual(0);
expect(attributes.distanceDisplayCondition).toEqual(DistanceDisplayConditionGeometryInstanceAttribute.toValue(ddc));
expect(attributes.distanceDisplayCondition).toEqualEpsilon(DistanceDisplayConditionGeometryInstanceAttribute.toValue(ddc), CesiumMath.EPSILON5);
expect(primitives.get(0).appearance.material.uniforms.color).toEqual(ellipsoid.material.color.getValue());

attributes = primitives.get(1).getGeometryInstanceAttributes(entity);
expect(attributes.show[0]).toEqual(0);
expect(attributes.color).toEqual(ColorGeometryInstanceAttribute.toValue(ellipsoid.outlineColor.getValue()));
expect(attributes.distanceDisplayCondition).toEqual(DistanceDisplayConditionGeometryInstanceAttribute.toValue(ddc));
expect(attributes.distanceDisplayCondition).toEqualEpsilon(DistanceDisplayConditionGeometryInstanceAttribute.toValue(ddc), CesiumMath.EPSILON5);
});

it('geometryChanged event is raised when expected', function() {
Expand Down

0 comments on commit ae9d68f

Please sign in to comment.