summaryrefslogtreecommitdiffstats
path: root/debian/patches/temporarily-disable-test-metadata-test.diff
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/temporarily-disable-test-metadata-test.diff')
-rw-r--r--debian/patches/temporarily-disable-test-metadata-test.diff74
1 files changed, 74 insertions, 0 deletions
diff --git a/debian/patches/temporarily-disable-test-metadata-test.diff b/debian/patches/temporarily-disable-test-metadata-test.diff
new file mode 100644
index 000000000..d2ddfac0f
--- /dev/null
+++ b/debian/patches/temporarily-disable-test-metadata-test.diff
@@ -0,0 +1,74 @@
+diff --git a/sw/qa/uitest/styleInspector/styleInspector.py b/sw/qa/uitest/styleInspector/styleInspector.py
+index 49d02fc01c9b..d1e9d30711e9 100644
+--- a/sw/qa/uitest/styleInspector/styleInspector.py
++++ b/sw/qa/uitest/styleInspector/styleInspector.py
+@@ -131,69 +131,6 @@ class styleNavigator(UITestCase):
+
+ self.xUITest.executeCommand(".uno:Sidebar")
+
+- def test_metadata(self):
+- with self.ui_test.load_file(get_url_for_data_file("metadata.odt")):
+- xWriterDoc = self.xUITest.getTopFocusWindow()
+- xWriterEdit = xWriterDoc.getChild("writer_edit")
+-
+- self.xUITest.executeCommand(".uno:Sidebar")
+- xWriterEdit.executeAction("SIDEBAR", mkPropertyValues({"PANEL": "InspectorTextPanel"}))
+-
+- xListBox = xWriterEdit.getChild('listbox_fonts')
+-
+- # The cursor is on text without metadata
+- self.assertEqual(1, len(xListBox.getChild('0').getChildren()))
+- self.assertEqual("Default Paragraph Style\t", get_state_as_dict(xListBox.getChild('0').getChild('0'))['Text'])
+- self.assertEqual(140, len(xListBox.getChild('0').getChild('0').getChildren()))
+- self.assertEqual(0, len(xListBox.getChild('1').getChildren()))
+- self.assertEqual(0, len(xListBox.getChild('2').getChildren()))
+- self.assertEqual(0, len(xListBox.getChild('3').getChildren()))
+-
+- self.xUITest.executeCommand(".uno:GoDown")
+-
+- # The cursor is on text with paragraph metadata showed under direct paragraph formatting
+- self.assertEqual(1, len(xListBox.getChild('0').getChildren()))
+- self.assertEqual("Default Paragraph Style\t", get_state_as_dict(xListBox.getChild('0').getChild('0'))['Text'])
+- self.assertEqual(140, len(xListBox.getChild('0').getChild('0').getChildren()))
+-
+- xParDirFormatting = xListBox.getChild('1')
+- self.assertEqual(1, len(xParDirFormatting.getChildren()))
+- self.assertEqual("Metadata Reference\t", get_state_as_dict(xParDirFormatting.getChild('0'))['Text'])
+-
+- xMetadata = xParDirFormatting.getChild('0')
+- self.assertEqual(4, len(xMetadata.getChildren()))
+- self.assertEqual("xml:id\tpara1", get_state_as_dict(xMetadata.getChild('0'))['Text'])
+- self.assertEqual("http://www.w3.org/1999/02/22-rdf-syntax-ns#type\tParagraph", get_state_as_dict(xMetadata.getChild('1'))['Text'])
+- self.assertEqual("http://www.w3.org/2000/01/rdf-schema#comment\tAbout this paragraph...", get_state_as_dict(xMetadata.getChild('2'))['Text'])
+- self.assertEqual("http://www.w3.org/2000/01/rdf-schema#label\tAnnotated paragraph", get_state_as_dict(xMetadata.getChild('3'))['Text'])
+-
+- self.xUITest.executeCommand(".uno:GoDown")
+- # FIXME jump over the control character (not visible in getString(), but it affects
+- # cursor position and availability of NestedTextContent)
+- self.xUITest.executeCommand(".uno:GoRight")
+-
+- # The cursor is on text with annotated text range
+- xDirFormatting = xListBox.getChild('0')
+- self.assertEqual("Fields\t", get_state_as_dict(xListBox.getChild('0'))['Text'])
+- self.assertEqual(1, len(xDirFormatting.getChildren()))
+- self.assertEqual("Metadata Reference\t", get_state_as_dict(xDirFormatting.getChild('0'))['Text'])
+-
+- xMetadata = xDirFormatting.getChild('0')
+- self.assertEqual(4, len(xMetadata.getChildren()))
+- self.assertEqual("xml:id\tid2758386667", get_state_as_dict(xMetadata.getChild('0'))['Text'])
+- self.assertEqual("http://www.w3.org/1999/02/22-rdf-syntax-ns#type\tText span", get_state_as_dict(xMetadata.getChild('1'))['Text'])
+- self.assertEqual("http://www.w3.org/2000/01/rdf-schema#comment\tComment...", get_state_as_dict(xMetadata.getChild('2'))['Text'])
+- self.assertEqual("http://www.w3.org/2000/01/rdf-schema#label\tAnnotated paragraph portion", get_state_as_dict(xMetadata.getChild('3'))['Text'])
+-
+- xDirFormatting = xListBox.getChild('4')
+- self.assertEqual(1, len(xDirFormatting.getChildren()))
+- self.assertEqual("Nested Text Content\tAnnotated text range", get_state_as_dict(xDirFormatting.getChild('0'))['Text'])
+-
+- self.assertEqual(0, len(xListBox.getChild('2').getChildren()))
+- self.assertEqual(0, len(xListBox.getChild('3').getChildren()))
+-
+- self.xUITest.executeCommand(".uno:Sidebar")
+-
+ def test_bookmark_metadata(self):
+ with self.ui_test.load_file(get_url_for_data_file("bookmark-metadata.odt")):
+ xWriterDoc = self.xUITest.getTopFocusWindow()