diff options
| author | Tobias Bocanegra <tripod@adobe.com> | 2020-09-07 14:52:12 +0900 |
|---|---|---|
| committer | Tobias Bocanegra <tripod@adobe.com> | 2020-09-07 14:52:26 +0900 |
| commit | 091111ce4b0bece922d814a63e8f294cf52b79a6 (patch) | |
| tree | 8eca9cef0405c571c659454e06092b3bedfe30f2 /test | |
| parent | 50ed890db42c2cf6a1dbdf33c767059b654756df (diff) | |
Fix: Underline with value 'none' is wrongly detected
fixes #249
Diffstat (limited to 'test')
| -rw-r--r-- | test/docx/body-reader.tests.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/docx/body-reader.tests.js b/test/docx/body-reader.tests.js index 48f6b16..50506ae 100644 --- a/test/docx/body-reader.tests.js +++ b/test/docx/body-reader.tests.js @@ -459,6 +459,13 @@ test("isUnderline is true if underline element is present", function() { assert.equal(run.isUnderline, true); }); +test("isUnderline is false if underline element is 'none'", function() { + var underlineXml = new XmlElement("w:u", {"w:val": "none"}); + var runXml = runWithProperties([underlineXml]); + var run = readXmlElementValue(runXml); + assert.equal(run.isUnderline, false); +}); + test("isStrikethrough is false if strikethrough element is not present", function() { var runXml = runWithProperties([]); var run = readXmlElementValue(runXml); |
