assert(dom.hasClass(child,'code-background-custom'),`Color code with extra (valid) items "48;2;100;42;77;99;200;75" should still treat initial part as valid code and add class "code-background-custom".`);
assert.equal(1,child.classList.length,`Color code with extra items "48;2;100;42;77;99;200;75" should add one and only one class. (classes found: ${child.classList}).`);
letstyleBefore=child.style.backgroundColor;
child.style.backgroundColor='rgb(100,42,77)';
assert(child.style.backgroundColor===styleBefore,`Color code "48;2;100;42;77;99;200;75" should style background-color as rgb(100,42,77).`);
});
});
/**
* Assert that a given ANSI sequence produces the expected number of {@link HTMLSpanElement} children. For