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.java205
1 files changed, 0 insertions, 205 deletions
diff --git a/sw/qa/complex/writer/TextPortionEnumerationTest.java b/sw/qa/complex/writer/TextPortionEnumerationTest.java
index e36fc650b500..358d772cb6a5 100644
--- a/sw/qa/complex/writer/TextPortionEnumerationTest.java
+++ b/sw/qa/complex/writer/TextPortionEnumerationTest.java
@@ -1258,211 +1258,6 @@ public class TextPortionEnumerationTest
util.DesktopTools.closeDoc(m_xDoc);
}
- @Test public void testText() throws Exception
- {
- TreeNode root = new TreeNode();
- TreeNode text = new TextNode("abc");
- root.appendChild(text);
- doTest(root);
- }
-
- @Test public void testTextField() throws Exception
- {
- mkName("ruby");
- TreeNode root = new TreeNode();
- TreeNode txtf = new TextFieldNode("abc");
- root.appendChild(txtf);
- doTest(root);
- }
-
- /*@Test*/ public void testControlChar() throws Exception
- {
-//FIXME this is converted to a text portion: ControlCharacter is obsolete
- TreeNode root = new TreeNode();
- TreeNode cchr = new ControlCharacterNode(HARD_HYPHEN);
- root.appendChild(cchr);
- doTest(root);
- }
-
- /*@Test*/ public void testSoftPageBreak() throws Exception
- {
-//FIXME: insert a soft page break: not done
- TreeNode root = new TreeNode();
- TreeNode spbk = new SoftPageBreakNode();
- TreeNode text = new TextNode("abc");
- root.appendChild(spbk);
- root.appendChild(text);
- doTest(root);
- }
-
- @Test public void testFootnote() throws Exception
- {
- String name = mkName("ftn");
- TreeNode root = new TreeNode();
- TreeNode ftnd = new FootnoteNode(name);
- root.appendChild(ftnd);
- doTest(root);
- }
-
- @Test public void testFrameAs() throws Exception
- {
- String name = mkName("frame");
- TreeNode root = new TreeNode();
- TreeNode fram = new FrameNode(name, AS_CHARACTER);
- root.appendChild(fram);
- doTest(root);
- }
-
- @Test public void testFrameAt() throws Exception
- {
- String name = mkName("frame");
- TreeNode root = new TreeNode();
- TreeNode fram = new FrameNode(name, AT_CHARACTER);
- root.appendChild(fram);
- doTest(root);
- }
-
- @Test public void testBookmarkPoint() throws Exception
- {
- String name = mkName("mark");
- TreeNode root = new TreeNode();
- TreeNode bkmk = new BookmarkNode(name);
- TreeNode text = new TextNode("abc");
- root.appendChild(bkmk);
- root.appendChild(text);
- doTest(root);
- }
-
- @Test public void testBookmark() throws Exception
- {
- String name = mkName("mark");
- TreeNode root = new TreeNode();
- TreeNode bkm1 = new BookmarkStartNode(name);
- TreeNode text = new TextNode("abc");
- TreeNode bkm2 = new BookmarkEndNode(name);
- root.appendChild(bkm1);
- root.appendChild(text);
- root.appendChild(bkm2);
- doTest(root);
- }
-
- @Test public void testBookmarkPointXmlId() throws Exception
- {
- String name = mkName("mark");
- StringPair id = mkId("id");
- TreeNode root = new TreeNode();
- TreeNode bkmk = new BookmarkNode(name, id);
- TreeNode text = new TextNode("abc");
- root.appendChild(bkmk);
- root.appendChild(text);
- doTest(root);
- }
-
- @Test public void testBookmarkXmlId() throws Exception
- {
- String name = mkName("mark");
- StringPair id = mkId("id");
- TreeNode root = new TreeNode();
- TreeNode bkm1 = new BookmarkStartNode(name, id);
- TreeNode text = new TextNode("abc");
- TreeNode bkm2 = new BookmarkEndNode(name, id);
- root.appendChild(bkm1);
- root.appendChild(text);
- root.appendChild(bkm2);
- doTest(root);
- }
-
- @Test public void testRefmarkPoint() throws Exception
- {
- String name = mkName("refmark");
- TreeNode root = new TreeNode();
- TreeNode rfmk = new ReferenceMarkNode(name);
- TreeNode text = new TextNode("abc");
- root.appendChild(rfmk);
- root.appendChild(text);
- doTest(root);
- }
-
- @Test public void testRefmark() throws Exception
- {
- String name = mkName("refmark");
- TreeNode root = new TreeNode();
- TreeNode rfm1 = new ReferenceMarkStartNode(name);
- TreeNode text = new TextNode("abc");
- TreeNode rfm2 = new ReferenceMarkEndNode(name);
- root.appendChild(rfm1);
- root.appendChild(text);
- root.appendChild(rfm2);
- doTest(root);
- }
-
- @Test public void testToxmarkPoint() throws Exception
- {
- String name = mkName("toxmark");
- TreeNode root = new TreeNode();
- TreeNode txmk = new DocumentIndexMarkNode(name);
- TreeNode text = new TextNode("abc");
- root.appendChild(txmk);
- root.appendChild(text);
- doTest(root);
- }
-
- @Test public void testToxmark() throws Exception
- {
- String name = mkName("toxmark");
- TreeNode root = new TreeNode();
- TreeNode txm1 = new DocumentIndexMarkStartNode(name);
- TreeNode text = new TextNode("abc");
- TreeNode txm2 = new DocumentIndexMarkEndNode(name);
- root.appendChild(txm1);
- root.appendChild(text);
- root.appendChild(txm2);
- doTest(root);
- }
-
- @Test public void testHyperlink() throws Exception
- {
- String name = mkName("url");
- TreeNode root = new TreeNode();
- TreeNode href = new HyperlinkNode(name);
- TreeNode text = new TextNode("abc");
- href.appendChild(text);
- root.appendChild(href);
- doTest(root);
- }
-
- @Test public void testHyperlinkEmpty() throws Exception
- {
- String name = mkName("url");
- TreeNode root = new TreeNode();
- TreeNode href = new HyperlinkNode(name);
- TreeNode text = new TextNode("");
- href.appendChild(text);
- root.appendChild(href);
- doTest(root);
- }
-
- @Test public void testRuby() throws Exception
- {
- String name = mkName("ruby");
- TreeNode root = new TreeNode();
- TreeNode ruby = new RubyNode(name);
- TreeNode text = new TextNode("abc");
- ruby.appendChild(text);
- root.appendChild(ruby);
- doTest(root);
- }
-
- @Test public void testRubyEmpty() throws Exception
- {
- // BUG: #i91534#
- String name = mkName("ruby");
- TreeNode root = new TreeNode();
- TreeNode ruby = new RubyNode(name);
- root.appendChild(ruby);
- doTest(root);
- }
-
@Test public void testMeta() throws Exception
{
StringPair id = new StringPair("content.xml", mkName("id"));