diff --git a/tests/backend/specs/api/importexport.js b/tests/backend/specs/api/importexport.js
index fefd146f3..1a9e94332 100644
--- a/tests/backend/specs/api/importexport.js
+++ b/tests/backend/specs/api/importexport.js
@@ -17,135 +17,135 @@ const apiVersion = 1;
const testImports = {
'malformed': {
input: '
wtf',
- expectedHTML: 'wtf
',
- expectedText: 'wtf\n\n',
+ wantHTML: 'wtf
',
+ wantText: 'wtf\n\n',
disabled: true,
},
'nonelistiteminlist #3620': {
input: '',
- expectedHTML: '
',
- expectedText: '\ttest\n\t* FOO\n\n',
+ wantHTML: '
',
+ wantText: '\ttest\n\t* FOO\n\n',
disabled: true,
},
'whitespaceinlist #3620': {
input: '',
- expectedHTML: '
',
- expectedText: '\t* FOO\n\n',
+ wantHTML: '
',
+ wantText: '\t* FOO\n\n',
},
'prefixcorrectlinenumber': {
input: '- should be 1
- should be 2
',
- expectedHTML: '- should be 1
- should be 2
',
- expectedText: '\t1. should be 1\n\t2. should be 2\n\n',
+ wantHTML: '- should be 1
- should be 2
',
+ wantText: '\t1. should be 1\n\t2. should be 2\n\n',
},
'prefixcorrectlinenumbernested': {
input: '- should be 1
- foo
- should be 2
',
- expectedHTML: '- should be 1
- foo
- should be 2
',
- expectedText: '\t1. should be 1\n\t\t1.1. foo\n\t2. should be 2\n\n',
+ wantHTML: '- should be 1
- foo
- should be 2
',
+ wantText: '\t1. should be 1\n\t\t1.1. foo\n\t2. should be 2\n\n',
},
/*
"prefixcorrectlinenumber when introduced none list item - currently not supported see #3450": {
input: '- should be 1
test- should be 2
',
- expectedHTML: '- should be 1
test- should be 2
',
- expectedText: '\t1. should be 1\n\ttest\n\t2. should be 2\n\n',
+ wantHTML: '- should be 1
test- should be 2
',
+ wantText: '\t1. should be 1\n\ttest\n\t2. should be 2\n\n',
}
,
"newlinesshouldntresetlinenumber #2194": {
input: '- should be 1
test- should be 2
',
- expectedHTML: '- should be 1
test- should be 2
',
- expectedText: '\t1. should be 1\n\ttest\n\t2. should be 2\n\n',
+ wantHTML: '- should be 1
test- should be 2
',
+ wantText: '\t1. should be 1\n\ttest\n\t2. should be 2\n\n',
}
*/
'ignoreAnyTagsOutsideBody': {
description: 'Content outside body should be ignored',
input: 'titleempty
',
- expectedHTML: 'empty
',
- expectedText: 'empty\n\n',
+ wantHTML: 'empty
',
+ wantText: 'empty\n\n',
},
'indentedListsAreNotBullets': {
description: 'Indented lists are represented with tabs and without bullets',
input: '',
- expectedHTML: '
',
- expectedText: '\tindent\n\tindent\n\n',
+ wantHTML: '
',
+ wantText: '\tindent\n\tindent\n\n',
},
'lineWithMultipleSpaces': {
description: 'Multiple spaces should be collapsed',
input: 'Text with more than one space.
',
- expectedHTML: 'Text with more than one space.
',
- expectedText: 'Text with more than one space.\n\n',
+ wantHTML: 'Text with more than one space.
',
+ wantText: 'Text with more than one space.\n\n',
},
'lineWithMultipleNonBreakingAndNormalSpaces': {
// XXX the HTML between "than" and "one" looks strange
description: 'non-breaking space should be preserved, but can be replaced when it',
input: 'Text with more than one space.
',
- expectedHTML: 'Text with more than one space.
',
- expectedText: 'Text with more than one space.\n\n',
+ wantHTML: 'Text with more than one space.
',
+ wantText: 'Text with more than one space.\n\n',
},
'multiplenbsp': {
description: 'Multiple non-breaking space should be preserved',
input: '
',
- expectedHTML: '
',
- expectedText: ' \n\n',
+ wantHTML: '
',
+ wantText: ' \n\n',
},
'multipleNonBreakingSpaceBetweenWords': {
description: 'A normal space is always inserted before a word',
input: ' word1 word2 word3
',
- expectedHTML: ' word1 word2 word3
',
- expectedText: ' word1 word2 word3\n\n',
+ wantHTML: ' word1 word2 word3
',
+ wantText: ' word1 word2 word3\n\n',
},
'nonBreakingSpacePreceededBySpaceBetweenWords': {
description: 'A non-breaking space preceeded by a normal space',
input: ' word1 word2 word3
',
- expectedHTML: ' word1 word2 word3
',
- expectedText: ' word1 word2 word3\n\n',
+ wantHTML: ' word1 word2 word3
',
+ wantText: ' word1 word2 word3\n\n',
},
'nonBreakingSpaceFollowededBySpaceBetweenWords': {
description: 'A non-breaking space followed by a normal space',
input: ' word1 word2 word3
',
- expectedHTML: ' word1 word2 word3
',
- expectedText: ' word1 word2 word3\n\n',
+ wantHTML: ' word1 word2 word3
',
+ wantText: ' word1 word2 word3\n\n',
},
'spacesAfterNewline': {
description: 'Collapse spaces that follow a newline',
input: 'something
something
',
- expectedHTML: 'something
something
',
- expectedText: 'something\nsomething\n\n',
+ wantHTML: 'something
something
',
+ wantText: 'something\nsomething\n\n',
},
'spacesAfterNewlineP': {
description: 'Collapse spaces that follow a paragraph',
input: 'something something
',
- expectedHTML: 'something
something
',
- expectedText: 'something\n\nsomething\n\n',
+ wantHTML: 'something
something
',
+ wantText: 'something\n\nsomething\n\n',
},
'spacesAtEndOfLine': {
description: 'Collapse spaces that preceed/follow a newline',
input: 'something
something
',
- expectedHTML: 'something
something
',
- expectedText: 'something\nsomething\n\n',
+ wantHTML: 'something
something
',
+ wantText: 'something\nsomething\n\n',
},
'spacesAtEndOfLineP': {
description: 'Collapse spaces that preceed/follow a paragraph',
input: 'something something
',
- expectedHTML: 'something
something
',
- expectedText: 'something\n\nsomething\n\n',
+ wantHTML: 'something
something
',
+ wantText: 'something\n\nsomething\n\n',
},
'nonBreakingSpacesAfterNewlines': {
description: 'Don\'t collapse non-breaking spaces that follow a newline',
input: 'something
something
',
- expectedHTML: 'something
something
',
- expectedText: 'something\n something\n\n',
+ wantHTML: 'something
something
',
+ wantText: 'something\n something\n\n',
},
'nonBreakingSpacesAfterNewlinesP': {
description: 'Don\'t collapse non-breaking spaces that follow a paragraph',
input: 'something something
',
- expectedHTML: 'something
something
',
- expectedText: 'something\n\n something\n\n',
+ wantHTML: 'something
something
',
+ wantText: 'something\n\n something\n\n',
},
'collapseSpacesInsideElements': {
description: 'Preserve only one space when multiple are present',
input: 'Need more space s !
',
- expectedHTML: 'Need more space s !
',
- expectedText: 'Need more space s !\n\n',
+ wantHTML: 'Need more space s !
',
+ wantText: 'Need more space s !\n\n',
},
'collapseSpacesAcrossNewlines': {
description: 'Newlines and multiple spaces across newlines should be collapsed',
@@ -155,14 +155,14 @@ const testImports = {
space
s
!