DOCX Comparison
11 requirements
·
31 scenarios
Change Status Classification
JR-docx-comparison-001
The system SHALL track the comparison status of each content unit, distinguishing between inserted, deleted, equal, moved, and format-changed content.
6 test scenarios
- Status assigned during comparison JR-docx-comparison-001.1
- Inserted content identified JR-docx-comparison-001.2
- Deleted content identified JR-docx-comparison-001.3
- Moved source content identified JR-docx-comparison-001.4
- Moved destination content identified JR-docx-comparison-001.5
- Format-changed content identified JR-docx-comparison-001.6
Legal Numbering Continuation
JR-docx-comparison-007
The system SHALL detect continuation patterns in legal numbering where a paragraph continues a flat sequence rather than creating a nested hierarchy. When detected, the system SHALL use the effective top-level properties for display formatting.
3 test scenarios
- Orphan list item renders with parent format JR-docx-comparison-007.1
- Proper nested list renders hierarchically JR-docx-comparison-007.2
- Continuation pattern inherits formatting JR-docx-comparison-007.3
Sequential Footnote Numbering
JR-docx-comparison-008
The system SHALL calculate footnote display numbers sequentially based on document order, not using raw internal identifier values. Reserved system footnotes are excluded from numbering.
3 test scenarios
- First footnote displays as 1 JR-docx-comparison-008.1
- Sequential numbering ignores internal identifiers JR-docx-comparison-008.2
- Reserved footnotes excluded from numbering JR-docx-comparison-008.3
Moved Content Detection
JR-docx-comparison-010
The system SHALL detect moved content by grouping consecutive deleted and inserted blocks, comparing their text similarity, and converting matching pairs above a configurable threshold into move source and destination pairs.
3 test scenarios
- Move detected between similar blocks JR-docx-comparison-010.1
- Short blocks ignored JR-docx-comparison-010.2
- Below-threshold treated as separate changes JR-docx-comparison-010.3
Move Detection Configuration
JR-docx-comparison-012
The system SHALL provide configurable settings for move detection: enable/disable toggle, similarity threshold (default 0.8), minimum word count (default 3), and case sensitivity option.
2 test scenarios
- Move detection disabled JR-docx-comparison-012.1
- Custom threshold applied JR-docx-comparison-012.2
Native Move Tracking Markup
JR-docx-comparison-013
The system SHALL generate native Word move tracking markup when moves are detected, with paired range markers and content wrappers for both the source and destination locations, including author and date attribution.
3 test scenarios
- Move source markup generated correctly JR-docx-comparison-013.1
- Move destination markup generated correctly JR-docx-comparison-013.2
- Range identifiers properly paired JR-docx-comparison-013.3
Format Change Detail Capture
JR-docx-comparison-014
The system SHALL capture format change details including original formatting, modified formatting, and a list of human-readable names for the properties that differ.
2 test scenarios
- Bold formatting added captured JR-docx-comparison-014.1
- Multiple property changes captured JR-docx-comparison-014.2
Format Change Detection
JR-docx-comparison-015
The system SHALL detect formatting differences in unchanged content by comparing the formatting properties of matched original and modified elements, normalizing properties before comparison.
3 test scenarios
- Text becoming bold detected JR-docx-comparison-015.1
- No format change correctly identified JR-docx-comparison-015.2
- Format change with text change detected JR-docx-comparison-015.3
Format Detection Configuration
JR-docx-comparison-019
The system SHALL provide a configurable setting to enable or disable format change detection, with detection enabled by default.
2 test scenarios
- Format detection disabled when configured JR-docx-comparison-019.1
- Format detection enabled by default JR-docx-comparison-019.2
Native Format Change Markup
JR-docx-comparison-020
The system SHALL generate native Word format change tracking markup when format changes are detected, storing the original formatting alongside the new formatting with author and date attribution.
3 test scenarios
- Format change markup structured correctly JR-docx-comparison-020.1
- Bold added markup generated JR-docx-comparison-020.2
- Bold removed markup generated JR-docx-comparison-020.3
Format Change Revision Reporting
JR-docx-comparison-021
The system SHALL include format changes in revision output with a format-changed type, enabling users to review formatting modifications alongside text changes.
1 test scenario
- Format change revisions retrieved JR-docx-comparison-021.1