diff --git a/Specs/Scene/RectangularPyramidSensorVolumeSpec.js b/Specs/Scene/RectangularPyramidSensorVolumeSpec.js index ecb7bb6a83d..9e36bed9a55 100644 --- a/Specs/Scene/RectangularPyramidSensorVolumeSpec.js +++ b/Specs/Scene/RectangularPyramidSensorVolumeSpec.js @@ -169,14 +169,14 @@ defineSuite([ camera.position = new Cartesian3(x, y, z); scene.render(); - expect(scene.context.readPixels()).toEqual([0, 0, 0, 255]); + expect(scene._context.readPixels()).toEqual([0, 0, 0, 255]); var sensor = addSensor({ latitude : -90.0, altitude : 2500000.0 }); sensor.portionToDisplay = SensorVolumePortionToDisplay.COMPLETE; scene.render(); - expect(scene.context.readPixels()).not.toEqual([0, 0, 0, 255]); + expect(scene._context.readPixels()).not.toEqual([0, 0, 0, 255]); }); it('renders using below ellipsoid horizon option', function() { @@ -189,14 +189,14 @@ defineSuite([ camera.position = new Cartesian3(x, y, z); scene.render(); - expect(scene.context.readPixels()).toEqual([0, 0, 0, 255]); + expect(scene._context.readPixels()).toEqual([0, 0, 0, 255]); var sensor = addSensor({ latitude : -90.0, altitude : 2500000.0 }); sensor.portionToDisplay = SensorVolumePortionToDisplay.BELOW_ELLIPSOID_HORIZON; scene.render(); - expect(scene.context.readPixels()).not.toEqual([0, 0, 0, 255]); + expect(scene._context.readPixels()).not.toEqual([0, 0, 0, 255]); }); it('renders using above ellipsoid horizon option', function() { @@ -209,25 +209,25 @@ defineSuite([ camera.position = new Cartesian3(x, y, z); scene.render(); - expect(scene.context.readPixels()).toEqual([0, 0, 0, 255]); + expect(scene._context.readPixels()).toEqual([0, 0, 0, 255]); var sensor = addSensor({ latitude : -90.0, altitude : 2500000.0 }); sensor.portionToDisplay = SensorVolumePortionToDisplay.ABOVE_ELLIPSOID_HORIZON; scene.render(); - expect(scene.context.readPixels()).not.toEqual([0, 0, 0, 255]); + expect(scene._context.readPixels()).not.toEqual([0, 0, 0, 255]); }); it('renders', function() { scene.render(); - expect(scene.context.readPixels()).toEqual([0, 0, 0, 255]); + expect(scene._context.readPixels()).toEqual([0, 0, 0, 255]); var sensor = addSensor({ latitude : -90.0, altitude : 3000000.0 }); scene.render(); - expect(scene.context.readPixels()).not.toEqual([0, 0, 0, 255]); + expect(scene._context.readPixels()).not.toEqual([0, 0, 0, 255]); }); it('does not render when show is false', function() { @@ -237,10 +237,10 @@ defineSuite([ }); sensor.show = true; scene.render(); - expect(scene.context.readPixels()).not.toEqual([0, 0, 0, 255]); + expect(scene._context.readPixels()).not.toEqual([0, 0, 0, 255]); sensor.show = false; scene.render(); - expect(scene.context.readPixels()).toEqual([0, 0, 0, 255]); + expect(scene._context.readPixels()).toEqual([0, 0, 0, 255]); }); it('is picked', function() {