summaryrefslogtreecommitdiff
path: root/sw/qa/complex
diff options
context:
space:
mode:
Diffstat (limited to 'sw/qa/complex')
-rw-r--r--sw/qa/complex/writer/TextPortionEnumerationTest.java156
1 files changed, 0 insertions, 156 deletions
diff --git a/sw/qa/complex/writer/TextPortionEnumerationTest.java b/sw/qa/complex/writer/TextPortionEnumerationTest.java
index 3cf8b6d1299b..b13401e07d20 100644
--- a/sw/qa/complex/writer/TextPortionEnumerationTest.java
+++ b/sw/qa/complex/writer/TextPortionEnumerationTest.java
@@ -1258,162 +1258,6 @@ public class TextPortionEnumerationTest
util.DesktopTools.closeDoc(m_xDoc);
}
- @Test public void testEnd1() throws Exception
- {
- String name1 = mkName("bookmark");
- String name2 = mkName("toxmark");
- String name3 = mkName("refmark");
- TreeNode root = new TreeNode();
- root.appendChild( new TextNode("abc") );
- root.appendChild( new BookmarkNode(name1) );
- root.appendChild( new DocumentIndexMarkNode(name2) );
- root.appendChild( new ReferenceMarkNode(name3) );
- doTest(root);
- }
-
- @Test public void testEnd2() throws Exception
- {
- String name1 = mkName("bookmark");
- String name2 = mkName("frame");
- String name3 = mkName("refmark");
- String name4 = mkName("frame");
- String name5 = mkName("frame");
- TreeNode root = new TreeNode();
- root.appendChild( new TextNode("abc") );
- root.appendChild( new BookmarkNode(name1) );
- root.appendChild( new FrameNode(name2, AT_CHARACTER) );
- root.appendChild( new ReferenceMarkNode(name3) );
- root.appendChild( new FrameNode(name4, AT_CHARACTER) );
- root.appendChild( new FrameNode(name5, AT_CHARACTER) );
- doTest(root);
- }
-
- @Test public void testEnd3() throws Exception
- {
- String name1 = mkName("ftn");
- String name2 = mkName("toxmark");
- TreeNode root = new TreeNode();
- root.appendChild( new TextNode("abc") );
- root.appendChild( new FootnoteNode(name1) );
- root.appendChild( new DocumentIndexMarkNode(name2) );
- doTest(root);
- }
-
- @Test public void testEnd4() throws Exception
- {
- String name1 = mkName("bookmark");
- String name2 = mkName("frame");
- TreeNode root = new TreeNode();
- root.appendChild( new BookmarkStartNode(name1) );
- root.appendChild( new TextNode("abc") );
- root.appendChild( new FrameNode(name2, AS_CHARACTER) );
- root.appendChild( new BookmarkEndNode(name1) );
- doTest(root);
- }
-
- @Test public void testEnd5() throws Exception
- {
- String name1 = mkName("refmark");
- String name2 = mkName("ruby");
- TreeNode root = new TreeNode();
- root.appendChild( new ReferenceMarkStartNode(name1) );
- root.appendChild( new TextNode("abc") );
- TreeNode ruby = new RubyNode(name2);
- ruby.appendChild( new TextFieldNode("de") );
- root.appendChild(ruby);
- root.appendChild( new ReferenceMarkEndNode(name1) );
- doTest(root);
- }
-
- @Test public void testEmpty1() throws Exception
- {
- String name1 = mkName("refmark");
- String name2 = mkName("toxmark");
- String name3 = mkName("bookmark");
- String name4 = mkName("frame");
- String name7 = mkName("refmark");
- String name8 = mkName("toxmark");
- String name9 = mkName("bookmark");
- String nameA = mkName("frame");
- TreeNode root = new TreeNode();
- root.appendChild( new ReferenceMarkNode(name1) );
- root.appendChild( new DocumentIndexMarkNode(name2) );
- root.appendChild( new BookmarkNode(name3) );
- root.appendChild( new FrameNode(name4, AT_CHARACTER) );
- root.appendChild( new ReferenceMarkNode(name7) );
- root.appendChild( new DocumentIndexMarkNode(name8) );
- root.appendChild( new BookmarkNode(name9) );
- root.appendChild( new FrameNode(nameA, AT_CHARACTER) );
- doTest(root);
- }
-
- @Test public void testEmpty2() throws Exception
- {
- String name3 = mkName("bookmark");
- String name4 = mkName("frame");
- String name9 = mkName("bookmark");
- String nameA = mkName("frame");
- TreeNode root = new TreeNode();
- root.appendChild( new BookmarkNode(name3) );
- root.appendChild( new FrameNode(name4, AT_CHARACTER) );
- root.appendChild( new BookmarkNode(name9) );
- root.appendChild( new FrameNode(nameA, AT_CHARACTER) );
- doTest(root);
- }
-
- @Test public void testEmpty3() throws Exception
- {
- String name1 = mkName("refmark");
- String name2 = mkName("toxmark");
- String name3 = mkName("bookmark");
- String name4 = mkName("frame");
- String name5 = mkName("url");
- String name6 = mkName("ruby");
- String name7 = mkName("refmark");
- String name8 = mkName("toxmark");
- String name9 = mkName("bookmark");
- String nameA = mkName("frame");
- TreeNode root = new TreeNode();
- root.appendChild( new ReferenceMarkNode(name1) );
- root.appendChild( new DocumentIndexMarkNode(name2) );
- root.appendChild( new BookmarkNode(name3) );
- root.appendChild( new FrameNode(name4, AT_CHARACTER) );
- /* currently empty hyperlinks may get eaten...
- TreeNode href = new HyperlinkNode(name5);
- href.appendChild( new TextNode("") );
- root.appendChild(href);
- */
- TreeNode ruby = new RubyNode(name6);
- root.appendChild(ruby);
- root.appendChild( new ReferenceMarkNode(name7) );
- root.appendChild( new DocumentIndexMarkNode(name8) );
- root.appendChild( new BookmarkNode(name9) );
- root.appendChild( new FrameNode(nameA, AT_CHARACTER) );
- doTest(root);
- }
-
- @Test public void test1() throws Exception
- {
- String name1 = mkName("frame");
- String name2 = mkName("bookmark");
- String name3 = mkName("ruby");
- String name4 = mkName("ftn");
- String name5 = mkName("frame");
- TreeNode root = new TreeNode();
- root.appendChild( new FrameNode(name1, AT_CHARACTER) );
- root.appendChild( new BookmarkStartNode(name2) );
- root.appendChild( new TextNode("abc") );
- TreeNode ruby = new RubyNode(name3);
- ruby.appendChild( new TextNode("de") );
- ruby.appendChild( new FootnoteNode(name4) );
- ruby.appendChild( new BookmarkEndNode(name2) );
- root.appendChild(ruby);
- root.appendChild( new TextNode("fg") );
- root.appendChild( new FrameNode(name5, AT_CHARACTER) );
- root.appendChild( new TextFieldNode("h") );
- doTest(root);
- }
-
/* some range tests for the insertion: these are for the current
API which treats hyperlinks and rubys not as entities, but as formatting
attributes; if these ever become entities, they should not be split!