From 97df9b9afc0e7aa99552b81b6872a69b7a56d105 Mon Sep 17 00:00:00 2001 From: webzwo0i Date: Wed, 2 Dec 2020 21:53:39 +0100 Subject: [PATCH] more tests, WIP --- .../specs/api/importexport/brDontBreakOL.html | 1 + .../api/importexport/bulletListInOL.html | 1 + .../importexport/bulletsAndEmptyLines.html | 1 + .../bulletsAndNonBulletLines.html | 1 + .../collapseSpacesAcrossNewlines.html | 5 + .../collapseSpacesInsideElements.html | 1 + .../specs/api/importexport/complexNest.html | 1 + .../dontDeleteSpaceInsideElements.html | 1 + .../ignoreAnyTagsOutsideBody.html | 1 + .../specs/api/importexport/indents.html | 1 + .../importexport/indentsAndEmptyLines.html | 1 + .../api/importexport/indentsAndNewlines.html | 1 + .../indentsAndNonIndentedLines.html | 1 + .../api/importexport/lineDoBreakInOl.html | 1 + .../api/importexport/lineDontBreakOL.html | 1 + .../lineWithSpacesPreceedsOL.html | 1 + .../api/importexport/linebreakPreceedsOL.html | 1 + .../api/importexport/multiLineParagraph.html | 4 + .../multiLineParagraphWithPre.html | 8 + .../multipleIndentLevelAndStyles.html | 1 + .../multipleNewLinesAtBeginning.html | 1 + ...ultipleParagraphsWithSpacesPreceedsOL.html | 1 + .../specs/api/importexport/nestedOl.html | 1 + .../specs/api/importexport/nestedOl2.html | 1 + .../api/importexport/nestedOrderedLi.html | 14 + .../nonBreakingSpacesAfterNewlines.html | 1 + .../nonBreakingSpacesAfterNewlinesP.html | 1 + .../specs/api/importexport/normalNewline.html | 1 + tests/backend/specs/api/importexport/ol.html | 1 + .../importexport/olWithNonDefaultStart.html | 1 + .../api/importexport/paragraphPreceedsOL.html | 1 + .../api/importexport/preIntroducesASpace.html | 4 + .../api/importexport/spacesAfterNewline.html | 1 + .../api/importexport/spacesAfterNewlineP.html | 1 + .../api/importexport/spacesAtEndOfLine.html | 1 + .../api/importexport/spacesAtEndOfLineP.html | 1 + .../stylingWithAttributesAndTags.html | 1 + .../stylingWithAttributesWithoutTags.html | 1 + .../stylingWithFontAttributes.html | 1 + ...ylingWithSpanAndTagsWithoutAttributes.html | 1 + .../stylingWithTagsWithoutAttributes.html | 1 + .../backend/specs/api/importexport/testP.html | 1 + tests/backend/specs/api/importexport/ul.html | 1 + .../specs/api/importexport/ulIndented.html | 1 + tests/backend/specs/contentcollector.js | 285 +++++++++++++++++- 45 files changed, 353 insertions(+), 6 deletions(-) create mode 100644 tests/backend/specs/api/importexport/brDontBreakOL.html create mode 100644 tests/backend/specs/api/importexport/bulletListInOL.html create mode 100644 tests/backend/specs/api/importexport/bulletsAndEmptyLines.html create mode 100644 tests/backend/specs/api/importexport/bulletsAndNonBulletLines.html create mode 100644 tests/backend/specs/api/importexport/collapseSpacesAcrossNewlines.html create mode 100644 tests/backend/specs/api/importexport/collapseSpacesInsideElements.html create mode 100644 tests/backend/specs/api/importexport/complexNest.html create mode 100644 tests/backend/specs/api/importexport/dontDeleteSpaceInsideElements.html create mode 100644 tests/backend/specs/api/importexport/ignoreAnyTagsOutsideBody.html create mode 100644 tests/backend/specs/api/importexport/indents.html create mode 100644 tests/backend/specs/api/importexport/indentsAndEmptyLines.html create mode 100644 tests/backend/specs/api/importexport/indentsAndNewlines.html create mode 100644 tests/backend/specs/api/importexport/indentsAndNonIndentedLines.html create mode 100644 tests/backend/specs/api/importexport/lineDoBreakInOl.html create mode 100644 tests/backend/specs/api/importexport/lineDontBreakOL.html create mode 100644 tests/backend/specs/api/importexport/lineWithSpacesPreceedsOL.html create mode 100644 tests/backend/specs/api/importexport/linebreakPreceedsOL.html create mode 100644 tests/backend/specs/api/importexport/multiLineParagraph.html create mode 100644 tests/backend/specs/api/importexport/multiLineParagraphWithPre.html create mode 100644 tests/backend/specs/api/importexport/multipleIndentLevelAndStyles.html create mode 100644 tests/backend/specs/api/importexport/multipleNewLinesAtBeginning.html create mode 100644 tests/backend/specs/api/importexport/multipleParagraphsWithSpacesPreceedsOL.html create mode 100644 tests/backend/specs/api/importexport/nestedOl.html create mode 100644 tests/backend/specs/api/importexport/nestedOl2.html create mode 100644 tests/backend/specs/api/importexport/nestedOrderedLi.html create mode 100644 tests/backend/specs/api/importexport/nonBreakingSpacesAfterNewlines.html create mode 100644 tests/backend/specs/api/importexport/nonBreakingSpacesAfterNewlinesP.html create mode 100644 tests/backend/specs/api/importexport/normalNewline.html create mode 100644 tests/backend/specs/api/importexport/ol.html create mode 100644 tests/backend/specs/api/importexport/olWithNonDefaultStart.html create mode 100644 tests/backend/specs/api/importexport/paragraphPreceedsOL.html create mode 100644 tests/backend/specs/api/importexport/preIntroducesASpace.html create mode 100644 tests/backend/specs/api/importexport/spacesAfterNewline.html create mode 100644 tests/backend/specs/api/importexport/spacesAfterNewlineP.html create mode 100644 tests/backend/specs/api/importexport/spacesAtEndOfLine.html create mode 100644 tests/backend/specs/api/importexport/spacesAtEndOfLineP.html create mode 100644 tests/backend/specs/api/importexport/stylingWithAttributesAndTags.html create mode 100644 tests/backend/specs/api/importexport/stylingWithAttributesWithoutTags.html create mode 100644 tests/backend/specs/api/importexport/stylingWithFontAttributes.html create mode 100644 tests/backend/specs/api/importexport/stylingWithSpanAndTagsWithoutAttributes.html create mode 100644 tests/backend/specs/api/importexport/stylingWithTagsWithoutAttributes.html create mode 100644 tests/backend/specs/api/importexport/testP.html create mode 100644 tests/backend/specs/api/importexport/ul.html create mode 100644 tests/backend/specs/api/importexport/ulIndented.html diff --git a/tests/backend/specs/api/importexport/brDontBreakOL.html b/tests/backend/specs/api/importexport/brDontBreakOL.html new file mode 100644 index 000000000..fd0bd9322 --- /dev/null +++ b/tests/backend/specs/api/importexport/brDontBreakOL.html @@ -0,0 +1 @@ +
  1. should be 1

  2. should be 2
  3. should be 3

diff --git a/tests/backend/specs/api/importexport/bulletListInOL.html b/tests/backend/specs/api/importexport/bulletListInOL.html new file mode 100644 index 000000000..52e169811 --- /dev/null +++ b/tests/backend/specs/api/importexport/bulletListInOL.html @@ -0,0 +1 @@ +
  1. should be 1
  2. should be 2

diff --git a/tests/backend/specs/api/importexport/bulletsAndEmptyLines.html b/tests/backend/specs/api/importexport/bulletsAndEmptyLines.html new file mode 100644 index 000000000..6f6aac94e --- /dev/null +++ b/tests/backend/specs/api/importexport/bulletsAndEmptyLines.html @@ -0,0 +1 @@ +


diff --git a/tests/backend/specs/api/importexport/bulletsAndNonBulletLines.html b/tests/backend/specs/api/importexport/bulletsAndNonBulletLines.html new file mode 100644 index 000000000..853125850 --- /dev/null +++ b/tests/backend/specs/api/importexport/bulletsAndNonBulletLines.html @@ -0,0 +1 @@ +not bullet diff --git a/tests/backend/specs/api/importexport/collapseSpacesAcrossNewlines.html b/tests/backend/specs/api/importexport/collapseSpacesAcrossNewlines.html new file mode 100644 index 000000000..69d92b522 --- /dev/null +++ b/tests/backend/specs/api/importexport/collapseSpacesAcrossNewlines.html @@ -0,0 +1,5 @@ + Need + more + space + s + !
diff --git a/tests/backend/specs/api/importexport/collapseSpacesInsideElements.html b/tests/backend/specs/api/importexport/collapseSpacesInsideElements.html new file mode 100644 index 000000000..97ad1e73f --- /dev/null +++ b/tests/backend/specs/api/importexport/collapseSpacesInsideElements.html @@ -0,0 +1 @@ +Need more space s !
diff --git a/tests/backend/specs/api/importexport/complexNest.html b/tests/backend/specs/api/importexport/complexNest.html new file mode 100644 index 000000000..51affcfe4 --- /dev/null +++ b/tests/backend/specs/api/importexport/complexNest.html @@ -0,0 +1 @@ +
  1. item
    1. item1
    2. item2
diff --git a/tests/backend/specs/api/importexport/dontDeleteSpaceInsideElements.html b/tests/backend/specs/api/importexport/dontDeleteSpaceInsideElements.html new file mode 100644 index 000000000..429d4a5c1 --- /dev/null +++ b/tests/backend/specs/api/importexport/dontDeleteSpaceInsideElements.html @@ -0,0 +1 @@ +Need more spaces !
diff --git a/tests/backend/specs/api/importexport/ignoreAnyTagsOutsideBody.html b/tests/backend/specs/api/importexport/ignoreAnyTagsOutsideBody.html new file mode 100644 index 000000000..c0aee7e62 --- /dev/null +++ b/tests/backend/specs/api/importexport/ignoreAnyTagsOutsideBody.html @@ -0,0 +1 @@ +titleempty
diff --git a/tests/backend/specs/api/importexport/indents.html b/tests/backend/specs/api/importexport/indents.html new file mode 100644 index 000000000..60d6151ba --- /dev/null +++ b/tests/backend/specs/api/importexport/indents.html @@ -0,0 +1 @@ +
diff --git a/tests/backend/specs/api/importexport/indentsAndEmptyLines.html b/tests/backend/specs/api/importexport/indentsAndEmptyLines.html new file mode 100644 index 000000000..73d59d0b7 --- /dev/null +++ b/tests/backend/specs/api/importexport/indentsAndEmptyLines.html @@ -0,0 +1 @@ +


diff --git a/tests/backend/specs/api/importexport/indentsAndNewlines.html b/tests/backend/specs/api/importexport/indentsAndNewlines.html new file mode 100644 index 000000000..4151ec26b --- /dev/null +++ b/tests/backend/specs/api/importexport/indentsAndNewlines.html @@ -0,0 +1 @@ +

diff --git a/tests/backend/specs/api/importexport/indentsAndNonIndentedLines.html b/tests/backend/specs/api/importexport/indentsAndNonIndentedLines.html new file mode 100644 index 000000000..d9a27ad9b --- /dev/null +++ b/tests/backend/specs/api/importexport/indentsAndNonIndentedLines.html @@ -0,0 +1 @@ +not indent diff --git a/tests/backend/specs/api/importexport/lineDoBreakInOl.html b/tests/backend/specs/api/importexport/lineDoBreakInOl.html new file mode 100644 index 000000000..592355357 --- /dev/null +++ b/tests/backend/specs/api/importexport/lineDoBreakInOl.html @@ -0,0 +1 @@ +
  1. should be 1

hello

  1. should be 1
  2. should be 2

diff --git a/tests/backend/specs/api/importexport/lineDontBreakOL.html b/tests/backend/specs/api/importexport/lineDontBreakOL.html new file mode 100644 index 000000000..f4da98f31 --- /dev/null +++ b/tests/backend/specs/api/importexport/lineDontBreakOL.html @@ -0,0 +1 @@ +
  1. should be 1
  2. should be 2
  3. should be 3

diff --git a/tests/backend/specs/api/importexport/lineWithSpacesPreceedsOL.html b/tests/backend/specs/api/importexport/lineWithSpacesPreceedsOL.html new file mode 100644 index 000000000..e2a26dbc1 --- /dev/null +++ b/tests/backend/specs/api/importexport/lineWithSpacesPreceedsOL.html @@ -0,0 +1 @@ +


  1. should be 1
diff --git a/tests/backend/specs/api/importexport/linebreakPreceedsOL.html b/tests/backend/specs/api/importexport/linebreakPreceedsOL.html new file mode 100644 index 000000000..d12bb5a07 --- /dev/null +++ b/tests/backend/specs/api/importexport/linebreakPreceedsOL.html @@ -0,0 +1 @@ +
  1. should be 1
diff --git a/tests/backend/specs/api/importexport/multiLineParagraph.html b/tests/backend/specs/api/importexport/multiLineParagraph.html new file mode 100644 index 000000000..5b26b2ab7 --- /dev/null +++ b/tests/backend/specs/api/importexport/multiLineParagraph.html @@ -0,0 +1,4 @@ +

+а б в г ґ д е є ж з и і ї й к л м н о +п р с т у ф х ц ч ш щ ю я ь

+ diff --git a/tests/backend/specs/api/importexport/multiLineParagraphWithPre.html b/tests/backend/specs/api/importexport/multiLineParagraphWithPre.html new file mode 100644 index 000000000..4b00fe1c8 --- /dev/null +++ b/tests/backend/specs/api/importexport/multiLineParagraphWithPre.html @@ -0,0 +1,8 @@ +

+а б в г ґ д е є ж з и і ї й к л м н о

multiple
+lines
+in
+pre 
+

п р с т у ф х ц ч ш щ ю я +ь

+ diff --git a/tests/backend/specs/api/importexport/multipleIndentLevelAndStyles.html b/tests/backend/specs/api/importexport/multipleIndentLevelAndStyles.html new file mode 100644 index 000000000..7f1e843d2 --- /dev/null +++ b/tests/backend/specs/api/importexport/multipleIndentLevelAndStyles.html @@ -0,0 +1 @@ +