MCPcopy
hub / github.com/aframevr/aframe / materialTextureLoaded

Function materialTextureLoaded

tests/core/shader.test.js:135–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

133 // and don't try to assert the uniform values
134 el.addEventListener('materialtextureloaded', materialTextureLoaded);
135 function materialTextureLoaded () {
136 const material = el.components.material;
137 const instance = material.shader;
138 assert.equal(instance.material['_texture_src'].image.getAttribute('src'), VIDEO);
139 el.removeEventListener('materialtextureloaded', materialTextureLoaded);
140 done();
141 }
142 el.setAttribute('material', 'shader: testShader; src:' + VIDEO);
143 const material = el.components.material;
144 const instance = material.shader;

Callers

nothing calls this directly

Calls 1

getAttributeMethod · 0.45

Tested by

no test coverage detected