update master to V7

This commit is contained in:
JFH
2021-05-09 19:29:45 +02:00
parent 41fc05672d
commit 593c415664
1000 changed files with 47537 additions and 54304 deletions

View File

@@ -16,64 +16,4 @@ describe('sanitize', function () {
assert.equal(rect.getAttribute('stroke'), 'blue');
assert.equal(rect.getAttribute('stroke-width'), '40');
});
it('Test sanitizeSvg() does not strip letter-spacing attribute from text', function () {
const text = document.createElementNS(NS.SVG, 'text');
text.setAttribute('letter-spacing', '150');
svg.append(text);
sanitize.sanitizeSvg(text);
assert.equal(text.getAttribute('letter-spacing'), '150');
});
it('Test sanitizeSvg() does not strip text-anchor attribute from text', function () {
const text = document.createElementNS(NS.SVG, 'text');
text.setAttribute('text-anchor', 'end');
svg.append(text);
sanitize.sanitizeSvg(text);
assert.equal(text.getAttribute('text-anchor'), 'end');
});
it('Test sanitizeSvg() does not strip text-decoration attribute from text', function () {
const text = document.createElementNS(NS.SVG, 'text');
text.setAttribute('text-decoration', 'underline');
svg.append(text);
sanitize.sanitizeSvg(text);
assert.equal(text.getAttribute('text-decoration'), 'underline');
});
it('Test sanitizeSvg() does not strip word-spacing attribute from text', function () {
const text = document.createElementNS(NS.SVG, 'text');
text.setAttribute('word-spacing', '10');
svg.append(text);
sanitize.sanitizeSvg(text);
assert.equal(text.getAttribute('word-spacing'), '10');
});
it('Test sanitizeSvg() does not strip textLength attribute from text', function () {
const text = document.createElementNS(NS.SVG, 'text');
text.setAttribute('textLength', '200');
svg.append(text);
sanitize.sanitizeSvg(text);
assert.equal(text.getAttribute('textLength'), '200');
});
it('Test sanitizeSvg() does not strip lengthAdjust attribute from text', function () {
const text = document.createElementNS(NS.SVG, 'text');
text.setAttribute('lengthAdjust', 'spacingAndGlyphs');
svg.append(text);
sanitize.sanitizeSvg(text);
assert.equal(text.getAttribute('lengthAdjust'), 'spacingAndGlyphs');
});
});