Skip to content

Commit

Permalink
Change names of test data, update link in Sandcastle demo
Browse files Browse the repository at this point in the history
  • Loading branch information
lilleyse committed May 8, 2018
1 parent 4ef9401 commit 929ce88
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Apps/Sandcastle/gallery/3D Tiles Formats.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
resource: Cesium.IonResource.fromAssetId(3878)
}, {
name: 'PointCloudDraco',
resource: Cesium.IonResource.fromAssetId(9999)
resource: Cesium.IonResource.fromAssetId(4486)
}
],
selectedTileset: undefined,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"geometricError": 0,
"content": {
"url": "pointCloudDraco1.pnts"
"url": "pointCloudDraco.pnts"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"geometricError": 0,
"content": {
"url": "pointCloudDraco2.pnts"
"url": "pointCloudDracoPartial.pnts"
}
}
}
18 changes: 10 additions & 8 deletions Specs/Scene/PointCloud3DTileContentSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ defineSuite([
'Scene/Cesium3DTileStyle',
'Scene/ClippingPlane',
'Scene/ClippingPlaneCollection',
'Scene/DracoLoader',
'Scene/Expression',
'Specs/Cesium3DTilesTester',
'Specs/createCanvas',
Expand All @@ -38,6 +39,7 @@ defineSuite([
Cesium3DTileStyle,
ClippingPlane,
ClippingPlaneCollection,
DracoLoader,
Expression,
Cesium3DTilesTester,
createCanvas,
Expand All @@ -59,8 +61,8 @@ defineSuite([
var pointCloudNormalsOctEncodedUrl = './Data/Cesium3DTiles/PointCloud/PointCloudNormalsOctEncoded';
var pointCloudQuantizedUrl = './Data/Cesium3DTiles/PointCloud/PointCloudQuantized';
var pointCloudQuantizedOctEncodedUrl = './Data/Cesium3DTiles/PointCloud/PointCloudQuantizedOctEncoded';
var pointCloudDraco1Url = './Data/Cesium3DTiles/PointCloud/PointCloudDraco1';
var pointCloudDraco2Url = './Data/Cesium3DTiles/PointCloud/PointCloudDraco2';
var pointCloudDracoUrl = './Data/Cesium3DTiles/PointCloud/PointCloudDraco';
var pointCloudDracoPartialUrl = './Data/Cesium3DTiles/PointCloud/PointCloudDracoPartial';
var pointCloudWGS84Url = './Data/Cesium3DTiles/PointCloud/PointCloudWGS84';
var pointCloudBatchedUrl = './Data/Cesium3DTiles/PointCloud/PointCloudBatched';
var pointCloudWithPerPointPropertiesUrl = './Data/Cesium3DTiles/PointCloud/PointCloudWithPerPointProperties';
Expand Down Expand Up @@ -244,7 +246,7 @@ defineSuite([
// Draco decoding is not currently supported in IE
return;
}
return Cesium3DTilesTester.loadTileset(scene, pointCloudDraco1Url).then(function(tileset) {
return Cesium3DTilesTester.loadTileset(scene, pointCloudDracoUrl).then(function(tileset) {
Cesium3DTilesTester.expectRender(scene, tileset);
});
});
Expand All @@ -254,7 +256,7 @@ defineSuite([
// Draco decoding is not currently supported in IE
return;
}
return Cesium3DTilesTester.loadTileset(scene, pointCloudDraco2Url).then(function(tileset) {
return Cesium3DTilesTester.loadTileset(scene, pointCloudDracoPartialUrl).then(function(tileset) {
Cesium3DTilesTester.expectRender(scene, tileset);
});
});
Expand All @@ -265,11 +267,11 @@ defineSuite([
return;
}
return pollToPromise(function() {
return defined(PointCloud3DTileContent._getDecoderTaskProcessor());
return DracoLoader._taskProcessorReady;
}).then(function() {
var decoder = PointCloud3DTileContent._getDecoderTaskProcessor();
var decoder = DracoLoader._getDecoderTaskProcessor();
spyOn(decoder, 'scheduleTask').and.returnValue(when.reject({message : 'my error'}));
return Cesium3DTilesTester.loadTileset(scene, pointCloudDraco1Url).then(function(tileset) {
return Cesium3DTilesTester.loadTileset(scene, pointCloudDracoUrl).then(function(tileset) {
var root = tileset._root;
return root.contentReadyPromise.then(function() {
fail('should not resolve');
Expand All @@ -282,7 +284,7 @@ defineSuite([

it('throws error if attempting to decode draco in Internet Explorer', function() {
spyOn(FeatureDetection, 'isInternetExplorer').and.returnValue(true);
return Cesium3DTilesTester.loadTileset(scene, pointCloudDraco1Url).then(function(tileset) {
return Cesium3DTilesTester.loadTileset(scene, pointCloudDracoUrl).then(function(tileset) {
var root = tileset._root;
return root.contentReadyPromise.then(function() {
fail('should not resolve');
Expand Down

0 comments on commit 929ce88

Please sign in to comment.