@@ -1146,8 +1146,10 @@ defineSuite([
1146
1146
clock . currentTime = start ;
1147
1147
clock . multiplier = 0.0 ;
1148
1148
1149
+ scene . primitives . add ( pointCloud ) ;
1150
+
1149
1151
return pollToPromise ( function ( ) {
1150
- pointCloud . update ( scene . frameState ) ;
1152
+ scene . render ( ) ;
1151
1153
return defined ( pointCloud . boundingSphere ) ;
1152
1154
} ) . then ( function ( ) {
1153
1155
return pointCloud . readyPromise ;
@@ -1172,6 +1174,7 @@ defineSuite([
1172
1174
1173
1175
return promise . then ( function ( ) {
1174
1176
expect ( wasCompleted ) . toEqual ( true ) ;
1177
+ viewer . scene . primitives . remove ( pointCloud ) ;
1175
1178
} ) ;
1176
1179
} ) ;
1177
1180
} ) ;
@@ -1194,6 +1197,7 @@ defineSuite([
1194
1197
1195
1198
return promise . then ( function ( ) {
1196
1199
expect ( wasCompleted ) . toEqual ( true ) ;
1200
+ viewer . scene . primitives . remove ( pointCloud ) ;
1197
1201
} ) ;
1198
1202
} ) ;
1199
1203
} ) ;
@@ -1384,6 +1388,7 @@ defineSuite([
1384
1388
1385
1389
return promise . then ( function ( ) {
1386
1390
expect ( wasCompleted ) . toEqual ( true ) ;
1391
+ viewer . scene . primitives . remove ( pointCloud ) ;
1387
1392
} ) ;
1388
1393
} ) ;
1389
1394
} ) ;
@@ -1407,6 +1412,7 @@ defineSuite([
1407
1412
1408
1413
return promise . then ( function ( ) {
1409
1414
expect ( wasCompleted ) . toEqual ( true ) ;
1415
+ viewer . scene . primitives . remove ( pointCloud ) ;
1410
1416
} ) ;
1411
1417
} ) ;
1412
1418
} ) ;
@@ -1434,6 +1440,7 @@ defineSuite([
1434
1440
1435
1441
return promise . then ( function ( ) {
1436
1442
expect ( wasCompleted ) . toEqual ( true ) ;
1443
+ viewer . scene . primitives . remove ( pointCloud ) ;
1437
1444
} ) ;
1438
1445
} ) ;
1439
1446
} ) ;
0 commit comments