add tests

This commit is contained in:
meganrogge
2022-02-09 11:51:25 -06:00
parent 3e204584d9
commit e2a402d80e
3 changed files with 40 additions and 11 deletions
+4 -1
View File
@@ -530,5 +530,8 @@ function loadTest() {
function addDecoration() {
const marker = term.addMarker(1);
const decoration = term.registerDecoration({ marker });
decoration.element.style.backgroundColor = 'red';
term.write('');
decoration.onRender(() => {
decoration.element.style.backgroundColor = 'red';
});
}