Skip to content

Commit

Permalink
Added a unit test that demonstrates the failure of a camera.LookAt pr…
Browse files Browse the repository at this point in the history
…operty

to be null in this manifest; and that it throws an exception
  • Loading branch information
vincentmarchetti committed Aug 19, 2024
1 parent f46cfcd commit 131acd0
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,15 @@ describe('c_comment_annotation_camera', function() {
expect(camera.isPerspectiveCamera).to.equal(true);
});

it('camera has null LookAt property', function(){
var annotations = scene.getContent();
var body = annotations[3].getBody()[0];
var camera = body.isSpecificResource?body.Source:body;


expect(camera.LookAt).to.equal(null);
});

it('all annotation have a body', function(){
var annotations = scene.getContent();
for (var i = 0; i < annotations.length; ++i){
Expand Down

0 comments on commit 131acd0

Please sign in to comment.