Fix tests

This commit is contained in:
Daniel Imms
2022-07-23 13:44:12 -07:00
parent 70b5e0249c
commit 19fb806214
2 changed files with 7 additions and 7 deletions
@@ -138,7 +138,7 @@ describe('DomRendererRowFactory', () => {
lineData.setCell(0, cell);
const fragment = rowFactory.createRow(lineData, 0, false, undefined, 0, false, 5, 20);
assert.equal(getFragmentHtml(fragment),
'<span class="xterm-underline-1">a</span>'
'<span class="xterm-underline-1" style="text-decoration-color: rgb(255,255,255);">a</span>'
);
});
it('should add class for double underline style', () => {
@@ -149,7 +149,7 @@ describe('DomRendererRowFactory', () => {
lineData.setCell(0, cell);
const fragment = rowFactory.createRow(lineData, 0, false, undefined, 0, false, 5, 20);
assert.equal(getFragmentHtml(fragment),
'<span class="xterm-underline-2">a</span>'
'<span class="xterm-underline-2" style="text-decoration-color: rgb(255,255,255);">a</span>'
);
});
it('should add class for curly underline style', () => {
@@ -160,7 +160,7 @@ describe('DomRendererRowFactory', () => {
lineData.setCell(0, cell);
const fragment = rowFactory.createRow(lineData, 0, false, undefined, 0, false, 5, 20);
assert.equal(getFragmentHtml(fragment),
'<span class="xterm-underline-3">a</span>'
'<span class="xterm-underline-3" style="text-decoration-color: rgb(255,255,255);">a</span>'
);
});
it('should add class for double dotted style', () => {
@@ -171,7 +171,7 @@ describe('DomRendererRowFactory', () => {
lineData.setCell(0, cell);
const fragment = rowFactory.createRow(lineData, 0, false, undefined, 0, false, 5, 20);
assert.equal(getFragmentHtml(fragment),
'<span class="xterm-underline-4">a</span>'
'<span class="xterm-underline-4" style="text-decoration-color: rgb(255,255,255);">a</span>'
);
});
it('should add class for dashed underline style', () => {
@@ -182,7 +182,7 @@ describe('DomRendererRowFactory', () => {
lineData.setCell(0, cell);
const fragment = rowFactory.createRow(lineData, 0, false, undefined, 0, false, 5, 20);
assert.equal(getFragmentHtml(fragment),
'<span class="xterm-underline-5">a</span>'
'<span class="xterm-underline-5" style="text-decoration-color: rgb(255,255,255);">a</span>'
);
});
});
+2 -2
View File
@@ -45,7 +45,7 @@ describe('AttributeData', () => {
assert.equal(attrs.getUnderlineColor(), 45);
// should use FG color if underlineColor holds no value
attrs.extended.underlineColor = -1;
attrs.extended.underlineColor = 0;
attrs.fg |= Attributes.CM_P256 | 123;
assert.equal(attrs.getUnderlineColor(), 123);
});
@@ -62,7 +62,7 @@ describe('AttributeData', () => {
assert.equal(attrs.getUnderlineColor(), (1 << 16) | (2 << 8) | 3);
// should use FG color if underlineColor holds no value
attrs.extended.underlineColor = -1;
attrs.extended.underlineColor = 0;
attrs.fg |= Attributes.CM_P256 | 123;
assert.equal(attrs.getUnderlineColor(), 123);
});