diff options
Diffstat (limited to 'sd/qa/unit/a11y/layout.cxx')
-rw-r--r-- | sd/qa/unit/a11y/layout.cxx | 93 |
1 files changed, 46 insertions, 47 deletions
diff --git a/sd/qa/unit/a11y/layout.cxx b/sd/qa/unit/a11y/layout.cxx index 9fd2abf07acab..803c9c17cb3ec 100644 --- a/sd/qa/unit/a11y/layout.cxx +++ b/sd/qa/unit/a11y/layout.cxx @@ -24,12 +24,12 @@ CPPUNIT_TEST_FIXTURE(test::AccessibleTestBase, TestImpressDefaultStructure) CPPUNIT_ASSERT_EQUAL(u"<SHAPE name=\"PageShape: Slide 1\" description=\" \"/>" "<SHAPE name=\"PresentationTitle \" description=\" \">" - "<PARAGRAPH description=\"Paragraph: 0 Click to add Title\">" + "<PARAGRAPH>" "Click to add Title" "</PARAGRAPH>" "</SHAPE>" "<SHAPE name=\"PresentationSubtitle \" description=\" \">" - "<PARAGRAPH description=\"Paragraph: 0 Click to add Text\">" + "<PARAGRAPH>" "Click to add Text" "</PARAGRAPH>" "</SHAPE>"_ustr, @@ -86,47 +86,46 @@ CPPUNIT_TEST_FIXTURE(test::AccessibleTestBase, tdf150064) xDrawView->setCurrentPage(xDrawPage); Scheduler::ProcessEventsToIdle(); - CPPUNIT_ASSERT_EQUAL( - u"<SHAPE name=\"PageShape: Slide 1\" description=\" \"/>" - "<SHAPE name=\"PresentationTitle \" description=\" \">" - "<PARAGRAPH description=\"Paragraph: 0 P1 title\">P1 title</PARAGRAPH>" - "</SHAPE>" - "<SHAPE name=\"PresentationSubtitle \" description=\" \">" - "<PARAGRAPH description=\"Paragraph: 0 Some text\">Some text</PARAGRAPH>" - "</SHAPE>" - "<TABLE name=\"TableShape \" description=\" \">" - "<TABLE_CELL name=\"A1\">" - "<PARAGRAPH description=\"Paragraph: 0 1\">1</PARAGRAPH>" - "</TABLE_CELL>" - "<TABLE_CELL name=\"B1\">" - "<PARAGRAPH description=\"Paragraph: 0 2\">2</PARAGRAPH>" - "</TABLE_CELL>" - "<TABLE_CELL name=\"C1\">" - "<PARAGRAPH description=\"Paragraph: 0 3\">3</PARAGRAPH>" - "</TABLE_CELL>" - "<TABLE_CELL name=\"D1\">" - "<PARAGRAPH description=\"Paragraph: 0 4\">4</PARAGRAPH>" - "</TABLE_CELL>" - "<TABLE_CELL name=\"E1\">" - "<PARAGRAPH description=\"Paragraph: 0 5\">5</PARAGRAPH>" - "</TABLE_CELL>" - "<TABLE_CELL name=\"A2\">" - "<PARAGRAPH description=\"Paragraph: 0 6\">6</PARAGRAPH>" - "</TABLE_CELL>" - "<TABLE_CELL name=\"B2\">" - "<PARAGRAPH description=\"Paragraph: 0 7\">7</PARAGRAPH>" - "</TABLE_CELL>" - "<TABLE_CELL name=\"C2\">" - "<PARAGRAPH description=\"Paragraph: 0 8\">8</PARAGRAPH>" - "</TABLE_CELL>" - "<TABLE_CELL name=\"D2\">" - "<PARAGRAPH description=\"Paragraph: 0 9\">9</PARAGRAPH>" - "</TABLE_CELL>" - "<TABLE_CELL name=\"E2\">" - "<PARAGRAPH description=\"Paragraph: 0 10\">10</PARAGRAPH>" - "</TABLE_CELL>" - "</TABLE>"_ustr, - collectText()); + CPPUNIT_ASSERT_EQUAL(u"<SHAPE name=\"PageShape: Slide 1\" description=\" \"/>" + "<SHAPE name=\"PresentationTitle \" description=\" \">" + "<PARAGRAPH>P1 title</PARAGRAPH>" + "</SHAPE>" + "<SHAPE name=\"PresentationSubtitle \" description=\" \">" + "<PARAGRAPH>Some text</PARAGRAPH>" + "</SHAPE>" + "<TABLE name=\"TableShape \" description=\" \">" + "<TABLE_CELL name=\"A1\">" + "<PARAGRAPH>1</PARAGRAPH>" + "</TABLE_CELL>" + "<TABLE_CELL name=\"B1\">" + "<PARAGRAPH>2</PARAGRAPH>" + "</TABLE_CELL>" + "<TABLE_CELL name=\"C1\">" + "<PARAGRAPH>3</PARAGRAPH>" + "</TABLE_CELL>" + "<TABLE_CELL name=\"D1\">" + "<PARAGRAPH>4</PARAGRAPH>" + "</TABLE_CELL>" + "<TABLE_CELL name=\"E1\">" + "<PARAGRAPH>5</PARAGRAPH>" + "</TABLE_CELL>" + "<TABLE_CELL name=\"A2\">" + "<PARAGRAPH>6</PARAGRAPH>" + "</TABLE_CELL>" + "<TABLE_CELL name=\"B2\">" + "<PARAGRAPH>7</PARAGRAPH>" + "</TABLE_CELL>" + "<TABLE_CELL name=\"C2\">" + "<PARAGRAPH>8</PARAGRAPH>" + "</TABLE_CELL>" + "<TABLE_CELL name=\"D2\">" + "<PARAGRAPH>9</PARAGRAPH>" + "</TABLE_CELL>" + "<TABLE_CELL name=\"E2\">" + "<PARAGRAPH>10</PARAGRAPH>" + "</TABLE_CELL>" + "</TABLE>"_ustr, + collectText()); CPPUNIT_ASSERT(xDrawPages->getByIndex(1) >>= xDrawPage); xDrawView->setCurrentPage(xDrawPage); @@ -134,16 +133,16 @@ CPPUNIT_TEST_FIXTURE(test::AccessibleTestBase, tdf150064) CPPUNIT_ASSERT_EQUAL(u"<SHAPE name=\"PageShape: Slide 2\" description=\" \"/>" "<SHAPE name=\"PresentationTitle \" description=\" \">" - "<PARAGRAPH description=\"Paragraph: 0 P2 title\">P2 title</PARAGRAPH>" + "<PARAGRAPH>P2 title</PARAGRAPH>" "</SHAPE>" "<SHAPE name=\"PresentationOutliner \" description=\" \">" - "<PARAGRAPH description=\"Paragraph: 0 1\">1</PARAGRAPH>" + "<PARAGRAPH>1</PARAGRAPH>" "</SHAPE>" "<SHAPE name=\"PresentationOutliner \" description=\" \">" - "<PARAGRAPH description=\"Paragraph: 0 2\">2</PARAGRAPH>" + "<PARAGRAPH>2</PARAGRAPH>" "</SHAPE>" "<SHAPE name=\"PresentationOutliner \" description=\" \">" - "<PARAGRAPH description=\"Paragraph: 0 3\">3</PARAGRAPH>" + "<PARAGRAPH>3</PARAGRAPH>" "</SHAPE>"_ustr, collectText()); } |