@@ -20,7 +20,6 @@ defineSuite([
20
20
'Scene/Primitive' ,
21
21
'Scene/Scene' ,
22
22
'Scene/SceneMode' ,
23
- 'Scene/SingleTileImageryProvider' ,
24
23
'Specs/Cesium3DTilesTester' ,
25
24
'Specs/createCanvas' ,
26
25
'Specs/createScene' ,
@@ -47,7 +46,6 @@ defineSuite([
47
46
Primitive ,
48
47
Scene ,
49
48
SceneMode ,
50
- SingleTileImageryProvider ,
51
49
Cesium3DTilesTester ,
52
50
createCanvas ,
53
51
createScene ,
@@ -149,9 +147,6 @@ defineSuite([
149
147
function createGlobe ( ) {
150
148
var globe = new Globe ( ) ;
151
149
scene . globe = globe ;
152
- var layerCollection = globe . imageryLayers ;
153
- layerCollection . removeAll ( ) ;
154
- layerCollection . addImageryProvider ( new SingleTileImageryProvider ( { url : 'Data/Images/Red16x16.png' } ) ) ;
155
150
globe . depthTestAgainstTerrain = true ;
156
151
return pollToPromise ( function ( ) {
157
152
scene . render ( ) ;
@@ -823,6 +818,10 @@ defineSuite([
823
818
} ) ;
824
819
825
820
it ( 'samples height from the globe' , function ( ) {
821
+ if ( ! scene . sampleHeightSupported ) {
822
+ return ;
823
+ }
824
+
826
825
var cartographic = new Cartographic ( 0.0 , 0.0 ) ;
827
826
return createGlobe ( ) . then ( function ( ) {
828
827
expect ( scene ) . toSampleHeightAndCall ( function ( height ) {
@@ -954,6 +953,10 @@ defineSuite([
954
953
} ) ;
955
954
956
955
it ( 'clamps to the globe' , function ( ) {
956
+ if ( ! scene . sampleHeightSupported ) {
957
+ return ;
958
+ }
959
+
957
960
var cartesian = Cartesian3 . fromRadians ( 0.0 , 0.0 , 100000.0 ) ;
958
961
return createGlobe ( ) . then ( function ( ) {
959
962
expect ( scene ) . toClampToHeightAndCall ( function ( position ) {
0 commit comments