Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
likangning93 committed May 22, 2018
1 parent 4eebb9c commit f6b7a78
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 12 deletions.
3 changes: 0 additions & 3 deletions Specs/DataSources/CorridorGeometryUpdaterSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ defineSuite([
'DataSources/SampledPositionProperty',
'DataSources/SampledProperty',
'DataSources/TimeIntervalCollectionProperty',
'Scene/ClassificationType',
'Scene/PrimitiveCollection',
'Specs/createDynamicGeometryUpdaterSpecs',
'Specs/createDynamicProperty',
Expand All @@ -33,7 +32,6 @@ defineSuite([
SampledPositionProperty,
SampledProperty,
TimeIntervalCollectionProperty,
ClassificationType,
PrimitiveCollection,
createDynamicGeometryUpdaterSpecs,
createDynamicProperty,
Expand Down Expand Up @@ -84,7 +82,6 @@ defineSuite([
0, 1
]));
corridor.width = new ConstantProperty(1);
corridor.classificationType = ClassificationType.BOTH; // default TERRAIN
var entity = new Entity();
entity.corridor = corridor;
return entity;
Expand Down
3 changes: 0 additions & 3 deletions Specs/DataSources/EllipseGeometryUpdaterSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ defineSuite([
'DataSources/Entity',
'DataSources/SampledPositionProperty',
'DataSources/SampledProperty',
'Scene/ClassificationType',
'Scene/PrimitiveCollection',
'Specs/createDynamicGeometryUpdaterSpecs',
'Specs/createDynamicProperty',
Expand All @@ -27,7 +26,6 @@ defineSuite([
Entity,
SampledPositionProperty,
SampledProperty,
ClassificationType,
PrimitiveCollection,
createDynamicGeometryUpdaterSpecs,
createDynamicProperty,
Expand Down Expand Up @@ -70,7 +68,6 @@ defineSuite([
var ellipse = new EllipseGraphics();
ellipse.semiMajorAxis = new ConstantProperty(2);
ellipse.semiMinorAxis = new ConstantProperty(1);
ellipse.classificationType = ClassificationType.BOTH; // default TERRAIN

var entity = new Entity();
entity.position = new ConstantPositionProperty(Cartesian3.fromDegrees(0, 0, 0));
Expand Down
3 changes: 0 additions & 3 deletions Specs/DataSources/PolygonGeometryUpdaterSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ defineSuite([
'DataSources/PropertyArray',
'DataSources/SampledPositionProperty',
'DataSources/SampledProperty',
'Scene/ClassificationType',
'Scene/GroundPrimitive',
'Scene/PrimitiveCollection',
'Specs/createDynamicGeometryUpdaterSpecs',
Expand All @@ -30,7 +29,6 @@ defineSuite([
PropertyArray,
SampledPositionProperty,
SampledProperty,
ClassificationType,
GroundPrimitive,
PrimitiveCollection,
createDynamicGeometryUpdaterSpecs,
Expand Down Expand Up @@ -82,7 +80,6 @@ defineSuite([
1, 1,
0, 1
])));
polygon.classificationType = ClassificationType.BOTH; // default TERRAIN
var entity = new Entity();
entity.polygon = polygon;
return entity;
Expand Down
3 changes: 0 additions & 3 deletions Specs/DataSources/RectangleGeometryUpdaterSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ defineSuite([
'DataSources/Entity',
'DataSources/RectangleGraphics',
'DataSources/SampledProperty',
'Scene/ClassificationType',
'Scene/PrimitiveCollection',
'Specs/createDynamicGeometryUpdaterSpecs',
'Specs/createDynamicProperty',
Expand All @@ -25,7 +24,6 @@ defineSuite([
Entity,
RectangleGraphics,
SampledProperty,
ClassificationType,
PrimitiveCollection,
createDynamicGeometryUpdaterSpecs,
createDynamicProperty,
Expand Down Expand Up @@ -63,7 +61,6 @@ defineSuite([

function createBasicRectangleWithoutHeight() {
var rectangle = new RectangleGraphics();
rectangle.classificationType = ClassificationType.BOTH; // default TERRAIN
var entity = new Entity();
entity.rectangle = rectangle;
entity.rectangle.coordinates = new ConstantProperty(new Rectangle(0, 0, 1, 1));
Expand Down
1 change: 1 addition & 0 deletions Specs/createGeometryUpdaterGroundGeometrySpecs.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ define([

it('dynamic updater on terrain propagates classification type', function() {
var entity = createDynamicEntity();
entity[geometryPropertyName].classificationType = ClassificationType.BOTH;

var updater = new Updater(entity, getScene());
var primitives = new PrimitiveCollection();
Expand Down

0 comments on commit f6b7a78

Please sign in to comment.