mirror of
https://github.com/webodf/WebODF.git
synced 2026-11-30 16:47:58 +01:00
69 lines
3.4 KiB
XML
69 lines
3.4 KiB
XML
<tests
|
|
xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0"
|
|
xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0"
|
|
xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0"
|
|
xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0"
|
|
xmlns:c="urn:webodf:names:cursor"
|
|
xmlns:foreign="urn:operationtests:foreign">
|
|
<test name="AddAnnotationInsertText_startPosSameAtStartOfParagraph">
|
|
<!-- text inserted at the position of a start of an annotation at the start of a paragraph should be added to the annotated area -->
|
|
<before><office:text><text:p>abcd</text:p></office:text></before>
|
|
<ops>
|
|
<op optype="AddCursor" memberid="Alice"/>
|
|
<op optype="MoveCursor" memberid="Alice" position="0"/>
|
|
<op optype="AddCursor" memberid="Bob"/>
|
|
<op optype="MoveCursor" memberid="Bob" position="0"/>
|
|
<op optype="AddAnnotation" memberid="Alice" position="0" length="1" name="alice_1" timestamp="1375706047061"/>
|
|
<op optype="InsertText" memberid="Bob" position="0" text="123"/>
|
|
</ops>
|
|
<after><office:text><text:p><office:annotation office:name="alice_1"><dc:creator e:memberid="Alice"></dc:creator><dc:date>2013-08-05T12:34:07.061Z</dc:date><text:list><text:list-item><text:p><c:cursor c:memberId="Alice"/></text:p></text:list-item></text:list></office:annotation>123<c:cursor c:memberId="Bob"/>a<office:annotation-end office:name="alice_1"/>bcd</text:p></office:text></after>
|
|
</test>
|
|
<test name="SplitParagraph_AtEndOfStyledSpan_PreservesStyling">
|
|
<before><office:text><text:p><text:span text:style-name="bold">hello</text:span></text:p></office:text></before>
|
|
<ops>
|
|
<op optype="AddCursor" memberid="Bob"/>
|
|
<op optype="MoveCursor" memberid="Bob" position="5"/>
|
|
<op optype="SplitParagraph" memberid="Bob" position="5"/>
|
|
</ops>
|
|
<after><office:text><text:p><text:span text:style-name="bold">hello</text:span></text:p><text:p><text:span text:style-name="bold"><c:cursor c:memberId="Bob"/></text:span></text:p></office:text></after>
|
|
</test>
|
|
<test name="MoveCursor_OverImageAnchoredAsCharInStyle">
|
|
<before>
|
|
<office:automatic-styles>
|
|
<style:style style:name="Graphics" style:family="graphic">
|
|
<style:graphic-properties text:anchor-type="as-char"/>
|
|
</style:style>
|
|
</office:automatic-styles>
|
|
<office:text>
|
|
<text:p><draw:frame draw:style-name="Graphics"/></text:p>
|
|
</office:text>
|
|
</before>
|
|
<ops>
|
|
<op optype="AddCursor" memberid="Joe"/>
|
|
<op optype="MoveCursor" memberid="Joe" position="1"/>
|
|
</ops>
|
|
<after>
|
|
<office:automatic-styles>
|
|
<style:style style:name="Graphics" style:family="graphic">
|
|
<style:graphic-properties text:anchor-type="as-char"/>
|
|
</style:style>
|
|
</office:automatic-styles>
|
|
<office:text>
|
|
<text:p><draw:frame draw:style-name="Graphics"/><c:cursor c:memberId="Joe"/></text:p>
|
|
</office:text>
|
|
</after>
|
|
</test>
|
|
<test name="RemoveAnnotation_preservesForeignElements">
|
|
<before>
|
|
<office:text><text:p>ABC<office:annotation office:name="alice_2"><dc:creator e:memberid="Alice"/><dc:date>2013-08-05T12:34:07.061Z</dc:date><text:list><text:list-item><text:p><foreign:text/></text:p></text:list-item></text:list></office:annotation>D</text:p><text:p>EFG<text:span>HIJ</text:span></text:p></office:text>
|
|
</before>
|
|
<ops>
|
|
<op optype="RemoveAnnotation" memberid="Alice" position="4" length="0">
|
|
</op>
|
|
</ops>
|
|
<after>
|
|
<office:text><text:p>ABC<foreign:text/>D</text:p><text:p>EFG<text:span>HIJ</text:span></text:p></office:text>
|
|
</after>
|
|
</test>
|
|
</tests>
|