CompressedArrayTexture.tests.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /* global QUnit */
  2. import { CompressedArrayTexture } from '../../../../src/textures/CompressedArrayTexture.js';
  3. import { CompressedTexture } from '../../../../src/textures/CompressedTexture.js';
  4. export default QUnit.module( 'Textures', () => {
  5. QUnit.module( 'CompressedArrayTexture', () => {
  6. // INHERITANCE
  7. QUnit.test( 'Extending', ( assert ) => {
  8. const object = new CompressedArrayTexture();
  9. assert.strictEqual(
  10. object instanceof CompressedTexture, true,
  11. 'CompressedArrayTexture extends from CompressedTexture'
  12. );
  13. } );
  14. // INSTANCING
  15. QUnit.test( 'Instancing', ( assert ) => {
  16. const object = new CompressedArrayTexture();
  17. assert.ok( object, 'Can instantiate a CompressedArrayTexture.' );
  18. } );
  19. // PROPERTIES
  20. QUnit.todo( 'image.depth', ( assert ) => {
  21. // { width: width, height: height, depth: depth }
  22. assert.ok( false, 'everything\'s gonna be alright' );
  23. } );
  24. QUnit.todo( 'wrapR', ( assert ) => {
  25. assert.ok( false, 'everything\'s gonna be alright' );
  26. } );
  27. // PUBLIC
  28. QUnit.test( 'isCompressedArrayTexture', ( assert ) => {
  29. const object = new CompressedArrayTexture();
  30. assert.ok(
  31. object.isCompressedArrayTexture,
  32. 'CompressedArrayTexture.isCompressedArrayTexture should be true'
  33. );
  34. } );
  35. } );
  36. } );
粤ICP备19079148号