tests for CellData

This commit is contained in:
Jörg Breitbart
2019-01-12 18:44:10 +01:00
parent 35a6aa8326
commit 40b231edd1
2 changed files with 31 additions and 2 deletions
+4 -1
View File
@@ -78,6 +78,8 @@ export const enum Content {
/**
* CellData - represents a single Cell in the terminal buffer.
*
* TODO: attr getter
*/
export class CellData implements ICellData {
@@ -136,8 +138,9 @@ export class CellData implements ICellData {
} else {
combined = true;
}
} else {
combined = true;
}
combined = true;
} else {
this.content = value[CHAR_DATA_CHAR_INDEX].charCodeAt(0) | (value[CHAR_DATA_WIDTH_INDEX] << Content.WIDTH_SHIFT);
}