summaryrefslogtreecommitdiff
path: root/sw/qa/complex
diff options
context:
space:
mode:
authorjmzambon <jeanmarczambon@gmail.com>2017-06-19 19:35:02 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2017-07-14 08:45:25 +0200
commit1bb0b3815a1e0ba677d6aac577fbb4c7fffee3bf (patch)
treed4f225be2395968d98e3607157683d7401250306 /sw/qa/complex
parent4b7c522208deeb80b821a294e4e76e50c78304e7 (diff)
tdf#97362: TextPortionEnumerationTest partially migrated to python (part 3)
Convert tests: - test_marks1 - test_marks2 - test_marks3 - test_frame_mark1 - test_frame_mark2 - test_frame_mark3 - test_frame_mark4 - test_frames1 - test_frames2 - test_frames3 - test_frames4 - test_frames5 - test_ruby_hyperlink1 - test_ruby_hyperlink2 Change-Id: I3ee495cdd88cffefd3980184bac0a72bae6a749f Reviewed-on: https://gerrit.libreoffice.org/38976 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'sw/qa/complex')
-rw-r--r--sw/qa/complex/writer/TextPortionEnumerationTest.java199
1 files changed, 0 insertions, 199 deletions
diff --git a/sw/qa/complex/writer/TextPortionEnumerationTest.java b/sw/qa/complex/writer/TextPortionEnumerationTest.java
index d3d0a2ab50ac..3cf8b6d1299b 100644
--- a/sw/qa/complex/writer/TextPortionEnumerationTest.java
+++ b/sw/qa/complex/writer/TextPortionEnumerationTest.java
@@ -1258,205 +1258,6 @@ public class TextPortionEnumerationTest
util.DesktopTools.closeDoc(m_xDoc);
}
- @Test public void testMarks1() throws Exception
- {
- String name1 = mkName("bookmark");
- String name2 = mkName("toxmark");
- String name3 = mkName("refmark");
- String name4 = mkName("toxmark");
- TreeNode root = new TreeNode();
- root.appendChild( new BookmarkStartNode(name1) );
- root.appendChild( new DocumentIndexMarkNode(name2) );
- root.appendChild( new ReferenceMarkStartNode(name3) );
- root.appendChild( new TextNode("abc") );
- root.appendChild( new BookmarkEndNode(name1) );
- root.appendChild( new DocumentIndexMarkStartNode(name4) );
- root.appendChild( new TextNode("de") );
- root.appendChild( new DocumentIndexMarkEndNode(name4) );
- root.appendChild( new ReferenceMarkEndNode(name3) );
- doTest(root);
- }
-
- @Test public void testMarks2() throws Exception
- {
- String name1 = mkName("bookmark");
- String name2 = mkName("refmark");
- String name3 = mkName("refmark");
- String name4 = mkName("toxmark");
- String name5 = mkName("refmark");
- TreeNode root = new TreeNode();
- root.appendChild( new BookmarkStartNode(name1) );
- root.appendChild( new ReferenceMarkNode(name2) );
- root.appendChild( new ReferenceMarkStartNode(name3) );
- root.appendChild( new TextNode("abc") );
- root.appendChild( new DocumentIndexMarkStartNode(name4) );
- root.appendChild( new ReferenceMarkStartNode(name5) );
- // BUG: #i102541# (this is actually not unoportenum's fault)
- root.appendChild( new ReferenceMarkEndNode(name3) );
- root.appendChild( new TextNode("de") );
- root.appendChild( new DocumentIndexMarkEndNode(name4) );
- root.appendChild( new BookmarkEndNode(name1) );
- root.appendChild( new ReferenceMarkEndNode(name5) );
- doTest(root);
- }
-
- @Test public void testMarks3() throws Exception
- {
- String name1 = mkName("bookmark");
- String name2 = mkName("refmark");
- String name3 = mkName("refmark");
- String name4 = mkName("toxmark");
- String name5 = mkName("refmark");
- TreeNode root = new TreeNode();
- root.appendChild( new BookmarkStartNode(name1) );
- root.appendChild( new DocumentIndexMarkNode(name2) );
- root.appendChild( new DocumentIndexMarkStartNode(name3) );
- root.appendChild( new TextNode("abc") );
- root.appendChild( new ReferenceMarkStartNode(name4) );
- root.appendChild( new DocumentIndexMarkStartNode(name5) );
- root.appendChild( new DocumentIndexMarkEndNode(name3) );
- root.appendChild( new TextNode("de") );
- root.appendChild( new ReferenceMarkEndNode(name4) );
- root.appendChild( new BookmarkEndNode(name1) );
- root.appendChild( new DocumentIndexMarkEndNode(name5) );
- doTest(root);
- }
-
- @Test public void testFrameMark1() throws Exception
- {
- String name1 = mkName("bookmark");
- String name2 = mkName("frame");
- TreeNode root = new TreeNode();
- root.appendChild( new TextNode("abc") );
- root.appendChild( new BookmarkNode(name1) );
- root.appendChild( new TextNode("de") );
- root.appendChild( new FrameNode(name2, AS_CHARACTER) );
- doTest(root);
- }
-
- @Test public void testFrameMark2() throws Exception
- {
- // BUG: #i98530#
- String name1 = mkName("bookmark");
- String name2 = mkName("frame");
- TreeNode root = new TreeNode();
- root.appendChild( new TextNode("abc") );
- root.appendChild( new BookmarkNode(name1) );
- root.appendChild( new TextNode("de") );
- root.appendChild( new FrameNode(name2, AT_CHARACTER) );
- doTest(root);
- }
-
- @Test public void testFrameMark3() throws Exception
- {
- String name1 = mkName("frame");
- String name2 = mkName("bookmark");
- TreeNode root = new TreeNode();
- root.appendChild( new TextNode("abc") );
- root.appendChild( new FrameNode(name1, AS_CHARACTER) );
- root.appendChild( new TextNode("de") );
- root.appendChild( new BookmarkNode(name2) );
- doTest(root);
- }
-
- @Test public void testFrameMark4() throws Exception
- {
- String name1 = mkName("frame");
- String name2 = mkName("bookmark");
- TreeNode root = new TreeNode();
- root.appendChild( new TextNode("abc") );
- root.appendChild( new FrameNode(name1, AT_CHARACTER) );
- root.appendChild( new TextNode("de") );
- root.appendChild( new BookmarkNode(name2) );
- doTest(root);
- }
-
- @Test public void testFrames1() throws Exception
- {
- String name1 = mkName("frame");
- String name2 = mkName("frame");
- String name3 = mkName("frame");
- TreeNode root = new TreeNode();
- root.appendChild( new FrameNode(name1, AT_CHARACTER) );
- root.appendChild( new FrameNode(name2, AT_CHARACTER) );
- root.appendChild( new FrameNode(name3, AT_CHARACTER) );
- doTest(root);
- }
-
- @Test public void testFrames2() throws Exception
- {
- String name1 = mkName("frame");
- String name2 = mkName("frame");
- String name3 = mkName("frame");
- TreeNode root = new TreeNode();
- root.appendChild( new FrameNode(name1, AS_CHARACTER) );
- root.appendChild( new FrameNode(name2, AS_CHARACTER) );
- root.appendChild( new FrameNode(name3, AS_CHARACTER) );
- doTest(root);
- }
-
- @Test public void testFrames3() throws Exception
- {
- String name1 = mkName("frame");
- String name2 = mkName("frame");
- String name3 = mkName("frame");
- TreeNode root = new TreeNode();
- root.appendChild( new FrameNode(name1, AT_CHARACTER) );
- root.appendChild( new FrameNode(name2, AS_CHARACTER) );
- root.appendChild( new FrameNode(name3, AT_CHARACTER) );
- doTest(root);
- }
-
- @Test public void testFrames4() throws Exception
- {
- String name1 = mkName("frame");
- String name2 = mkName("frame");
- String name3 = mkName("frame");
- TreeNode root = new TreeNode();
- root.appendChild( new FrameNode(name1, AT_CHARACTER) );
- root.appendChild( new FrameNode(name2, AT_CHARACTER) );
- root.appendChild( new FrameNode(name3, AS_CHARACTER) );
- doTest(root);
- }
-
- @Test public void testFrames5() throws Exception
- {
- String name1 = mkName("frame");
- String name2 = mkName("frame");
- String name3 = mkName("frame");
- TreeNode root = new TreeNode();
- root.appendChild( new FrameNode(name1, AS_CHARACTER) );
- root.appendChild( new FrameNode(name2, AT_CHARACTER) );
- root.appendChild( new FrameNode(name3, AT_CHARACTER) );
- doTest(root);
- }
-
- @Test public void testRubyHyperlink1() throws Exception
- {
- String name1 = mkName("ruby");
- String name2 = mkName("url");
- TreeNode root = new TreeNode();
- TreeNode ruby = new RubyNode(name1);
- TreeNode href = new HyperlinkNode(name2);
- href.appendChild( new TextNode("abc") );
- ruby.appendChild(href);
- root.appendChild(ruby);
- doTest(root);
- }
-
- @Test public void testRubyHyperlink2() throws Exception
- {
- String name1 = mkName("url");
- String name2 = mkName("ruby");
- TreeNode root = new TreeNode();
- TreeNode href = new HyperlinkNode(name1);
- TreeNode ruby = new RubyNode(name2);
- ruby.appendChild( new TextNode("abc") );
- href.appendChild(ruby);
- root.appendChild(href);
- doTest(root);
- }
-
@Test public void testEnd1() throws Exception
{
String name1 = mkName("bookmark");