InstancedMesh.tests.js 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. /* global QUnit */
  2. import { InstancedMesh } from '../../../../src/objects/InstancedMesh.js';
  3. import { Mesh } from '../../../../src/objects/Mesh.js';
  4. export default QUnit.module( 'Objects', () => {
  5. QUnit.module( 'InstancedMesh', () => {
  6. // INHERITANCE
  7. QUnit.test( 'Extending', ( assert ) => {
  8. var object = new InstancedMesh();
  9. assert.strictEqual( object instanceof Mesh, true, 'InstancedMesh extends from Mesh' );
  10. } );
  11. // INSTANCING
  12. QUnit.todo( 'Instancing', ( assert ) => {
  13. assert.ok( false, 'everything\'s gonna be alright' );
  14. } );
  15. // PROPERTIES
  16. QUnit.todo( 'instanceMatrix', ( assert ) => {
  17. // InstancedBufferAttribute
  18. assert.ok( false, 'everything\'s gonna be alright' );
  19. } );
  20. QUnit.todo( 'instanceColor', ( assert ) => {
  21. assert.ok( false, 'everything\'s gonna be alright' );
  22. } );
  23. QUnit.todo( 'count', ( assert ) => {
  24. assert.ok( false, 'everything\'s gonna be alright' );
  25. } );
  26. QUnit.todo( 'frustumCulled', ( assert ) => {
  27. assert.ok( false, 'everything\'s gonna be alright' );
  28. } );
  29. // PUBLIC STUFF
  30. QUnit.test( 'isInstancedMesh', ( assert ) => {
  31. const object = new InstancedMesh();
  32. assert.ok(
  33. object.isInstancedMesh,
  34. 'InstancedMesh.isInstancedMesh should be true'
  35. );
  36. } );
  37. QUnit.todo( 'copy', ( assert ) => {
  38. assert.ok( false, 'everything\'s gonna be alright' );
  39. } );
  40. QUnit.todo( 'getColorAt', ( assert ) => {
  41. assert.ok( false, 'everything\'s gonna be alright' );
  42. } );
  43. QUnit.todo( 'getMatrixAt', ( assert ) => {
  44. assert.ok( false, 'everything\'s gonna be alright' );
  45. } );
  46. QUnit.todo( 'raycast', ( assert ) => {
  47. assert.ok( false, 'everything\'s gonna be alright' );
  48. } );
  49. QUnit.todo( 'setColorAt', ( assert ) => {
  50. assert.ok( false, 'everything\'s gonna be alright' );
  51. } );
  52. QUnit.todo( 'setMatrixAt', ( assert ) => {
  53. assert.ok( false, 'everything\'s gonna be alright' );
  54. } );
  55. QUnit.todo( 'updateMorphTargets', ( assert ) => {
  56. // signature defined, no implementation
  57. assert.ok( false, 'everything\'s gonna be alright' );
  58. } );
  59. QUnit.todo( 'dispose', ( assert ) => {
  60. assert.ok( false, 'everything\'s gonna be alright' );
  61. } );
  62. } );
  63. } );