-
-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add merge and split concurrency tests (#780)
* **[ADDED]** Split and Split(5 * 8 * 8 = 320 cases) - Ranges(5) - Equals, single element - Equals, multiple element - A contains B, same level - A contains B, multiple level - B is next to A - Operations for both A and B(8) - Split front of range, level = 1 - Split front of range, level = 2 - Split one-quarter of range, level = 1 - Split one-quarter of range, level = 2 - Split three-quarter of range, level = 1 - Split three-quarter of range, level = 2 - Split back of range, level = 1 - Split back of range, level = 2 * **[ADDED]** Split and Edit(9 * 2 * 8 = 144 cases): - Ranges(9) - Equals - A contains B - B contains A - Left node(text) of split node - Right node(text) of split node - Left node(element) of split node - Right node(element) of split node - B is next to A - A is next to B - Operations for A(2) - splitLevel = 1 - splitLevel = 2 - Operations for B(8) - Insert front of range - Insert back of range - Insert middle of range - Delete - Replace - Merge - Style - RemoveStyle Failure cases (0 + 15 + 3 + 60 + 46 = 124/1592 cases) - Style and Style (0/144 cases) - Edit and Style (15/84 cases) - (6) {equal, equal-multiple} / {insert-front, insert-middle, replace} / style - (4) {intersect, A -> B} / {insert-middle, insert-back} / style - (1) A contains B / insert-middle / style - (4) B contains A / {insert-front, insert-middle, insert-back, replace} / style - Edit and Edit (3/900 cases) - (1) intersect-element / merge / replace-text - d1: `<root><p>abcdef</p>B</root>` - d2: `<root><p>abc</p>B</root>` - (1) intersect-element / merge / replace-element - d1: `<root><p>abcdef</p><i></i></root>` - d2: `<root><p>abc</p><i></i></root>` - (1) intersect-element / merge / delete - d1: `<root><p>abcdef</p></root>` - d2: `<root><p>abc</p></root>` - Split and Split (60/320 cases) - (1) equal-single / split-one-quarter-1 / split-back-1 - (1) equal-single / split-three-quarter-1 / split-back-1 - (1) equal-multiple / split-three-quarter-1 / split-back-1 - (1) A contains B same level / split-one-quarter-1 / split-front-1 - (1) A contains B same level / split-three-quarter-1 / split-back-1 - (1) A -> B / split-one-quarter-1 / split-front-1 - (1) A -> B / split-three-quarter-1 / split-back-1 - (53) and many cases with splitLevel > 1 - Split and Edit (46/144 cases) - (6) equals / {split-1, split-2} / {insert-back, replace, delete} - (8) A contains B / {split-1, split-2} / {replace, delete, style, remove-style} - (8) B contains A / {split-1, split-2} / {insert-middle, replace, delete, style} - (1) B contains A / split-2 / remove-style - (8) {right node text, right node element} / {split-1, split-2} / {style, remove-style} - (4) {right node text, right node element} / split-2 / {replace, delete} - (8) A -> B / {split-1, split-2} / {insert-front, replace, delete, style} - (1) A -> B / split-2 / remove-style - (2) B -> A / split-2 / {replace, delete}
- Loading branch information
1 parent
67b16a1
commit 94d6e30
Showing
2 changed files
with
180 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters