Skip to content

Commit

Permalink
Attempt to fix failing Travis tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lilleyse committed Sep 26, 2018
1 parent faafedf commit def0ddd
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions Specs/Scene/PickSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ defineSuite([
'Scene/Primitive',
'Scene/Scene',
'Scene/SceneMode',
'Scene/SingleTileImageryProvider',
'Specs/Cesium3DTilesTester',
'Specs/createCanvas',
'Specs/createScene',
Expand All @@ -47,7 +46,6 @@ defineSuite([
Primitive,
Scene,
SceneMode,
SingleTileImageryProvider,
Cesium3DTilesTester,
createCanvas,
createScene,
Expand Down Expand Up @@ -149,9 +147,6 @@ defineSuite([
function createGlobe() {
var globe = new Globe();
scene.globe = globe;
var layerCollection = globe.imageryLayers;
layerCollection.removeAll();
layerCollection.addImageryProvider(new SingleTileImageryProvider({url : 'Data/Images/Red16x16.png'}));
globe.depthTestAgainstTerrain = true;
return pollToPromise(function() {
scene.render();
Expand Down Expand Up @@ -823,6 +818,10 @@ defineSuite([
});

it('samples height from the globe', function() {
if (!scene.sampleHeightSupported) {
return;
}

var cartographic = new Cartographic(0.0, 0.0);
return createGlobe().then(function() {
expect(scene).toSampleHeightAndCall(function(height) {
Expand Down Expand Up @@ -954,6 +953,10 @@ defineSuite([
});

it('clamps to the globe', function() {
if (!scene.sampleHeightSupported) {
return;
}

var cartesian = Cartesian3.fromRadians(0.0, 0.0, 100000.0);
return createGlobe().then(function() {
expect(scene).toClampToHeightAndCall(function(position) {
Expand Down

0 comments on commit def0ddd

Please sign in to comment.