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

Function constructACubemap

tests/utils/src-loader.test.js:85–93  ·  view source on GitHub ↗
(childTag)

Source from the content-addressed store, hash-verified

83});
84
85function constructACubemap (childTag) {
86 var aCubemap = document.createElement('a-cubemap');
87 for (let i = 0; i < 6; i++) {
88 var child = document.createElement(childTag);
89 child.setAttribute('src', 'base/tests/assets/test.png');
90 aCubemap.appendChild(child);
91 }
92 return aCubemap;
93}

Callers 1

src-loader.test.jsFile · 0.85

Calls 1

setAttributeMethod · 0.45

Tested by

no test coverage detected