VideoTexture.tests.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /* global QUnit */
  2. import { VideoTexture } from '../../../../src/textures/VideoTexture.js';
  3. import { Texture } from '../../../../src/textures/Texture.js';
  4. export default QUnit.module( 'Textures', () => {
  5. QUnit.module( 'VideoTexture', () => {
  6. // INHERITANCE
  7. QUnit.test( 'Extending', ( assert ) => {
  8. const videoDocumentElement = {};
  9. const object = new VideoTexture( videoDocumentElement );
  10. assert.strictEqual(
  11. object instanceof Texture, true,
  12. 'VideoTexture extends from Texture'
  13. );
  14. } );
  15. // INSTANCING
  16. QUnit.todo( 'Instancing', ( assert ) => {
  17. assert.ok( false, 'everything\'s gonna be alright' );
  18. } );
  19. // PROPERTIES
  20. QUnit.todo( 'minFilter', ( assert ) => {
  21. assert.ok( false, 'everything\'s gonna be alright' );
  22. } );
  23. QUnit.todo( 'magFilter', ( assert ) => {
  24. assert.ok( false, 'everything\'s gonna be alright' );
  25. } );
  26. QUnit.todo( 'generateMipmaps', ( assert ) => {
  27. assert.ok( false, 'everything\'s gonna be alright' );
  28. } );
  29. // PUBLIC STUFF
  30. QUnit.test( 'isVideoTexture', ( assert ) => {
  31. const videoDocumentElement = {};
  32. const object = new VideoTexture( videoDocumentElement );
  33. assert.ok(
  34. object.isVideoTexture,
  35. 'VideoTexture.isVideoTexture should be true'
  36. );
  37. } );
  38. QUnit.todo( 'clone', ( assert ) => {
  39. assert.ok( false, 'everything\'s gonna be alright' );
  40. } );
  41. QUnit.todo( 'update', ( assert ) => {
  42. assert.ok( false, 'everything\'s gonna be alright' );
  43. } );
  44. } );
  45. } );