blob: 0a534ccc0fb0114e4235aa4e1055268eddd7ecc0 [file] [log] [blame]
const createModelAndSource = (test, src) => {
const model = document.createElement("model");
document.body.appendChild(model);
const source = document.createElement("source");
if (src)
source.src = src;
model.appendChild(source);
test.add_cleanup(() => model.remove());
return [model, source];
};