CompressedTexture.tests.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /* global QUnit */
  2. import { CompressedTexture } from '../../../../src/textures/CompressedTexture.js';
  3. import { Texture } from '../../../../src/textures/Texture.js';
  4. export default QUnit.module( 'Textures', () => {
  5. QUnit.module( 'CompressedTexture', () => {
  6. // INHERITANCE
  7. QUnit.test( 'Extending', ( assert ) => {
  8. var object = new CompressedTexture();
  9. assert.strictEqual( object instanceof Texture, true, 'CompressedTexture extends from Texture' );
  10. } );
  11. // INSTANCING
  12. QUnit.todo( 'Instancing', ( assert ) => {
  13. assert.ok( false, 'everything\'s gonna be alright' );
  14. } );
  15. // PROPERTIES
  16. QUnit.todo( 'image', ( assert ) => {
  17. assert.ok( false, 'everything\'s gonna be alright' );
  18. } );
  19. QUnit.todo( 'mipmaps', ( assert ) => {
  20. assert.ok( false, 'everything\'s gonna be alright' );
  21. } );
  22. QUnit.todo( 'flipY', ( assert ) => {
  23. assert.ok( false, 'everything\'s gonna be alright' );
  24. } );
  25. QUnit.todo( 'generateMipmaps', ( assert ) => {
  26. assert.ok( false, 'everything\'s gonna be alright' );
  27. } );
  28. // PUBLIC
  29. QUnit.test( 'isCompressedTexture', ( assert ) => {
  30. const object = new CompressedTexture();
  31. assert.ok(
  32. object.isCompressedTexture,
  33. 'CompressedTexture.isCompressedTexture should be true'
  34. );
  35. } );
  36. } );
  37. } );