From 131acd099238b432d47f3c2496acfaae741e33e9 Mon Sep 17 00:00:00 2001 From: Vincent Marchetti Date: Sun, 18 Aug 2024 20:04:30 -0400 Subject: [PATCH] Added a unit test that demonstrates the failure of a camera.LookAt property to be null in this manifest; and that it throws an exception --- .../xx_whale_comments/c_comment_annotation_camera.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/tests_3d/xx_whale_comments/c_comment_annotation_camera.js b/test/tests_3d/xx_whale_comments/c_comment_annotation_camera.js index 8ae3fcb6..3ab0e148 100644 --- a/test/tests_3d/xx_whale_comments/c_comment_annotation_camera.js +++ b/test/tests_3d/xx_whale_comments/c_comment_annotation_camera.js @@ -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){