Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
e5261dbd
Kaydet (Commit)
e5261dbd
authored
Nis 23, 2014
tarafından
Luboš Luňák
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix broken tests from
cf33af73
Change-Id: Ice31af80c3a837b2ee3a32ac973260476900ff35
üst
93ef2c3e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
ooxmlimport.cxx
sw/qa/extras/ooxmlimport/ooxmlimport.cxx
+16
-4
No files found.
sw/qa/extras/ooxmlimport/ooxmlimport.cxx
Dosyayı görüntüle @
e5261dbd
...
...
@@ -2006,8 +2006,15 @@ DECLARE_OOXMLIMPORT_TEST(testNegativeCellMarginTwips, "negative-cell-margin-twip
DECLARE_OOXMLIMPORT_TEST
(
testFdo38414
,
"fdo38414.docx"
)
{
// The cells in the last (4th) column were merged properly and so the result didn't have the same height.
OUString
height3
=
parseDump
(
"/root/page/body/tab/row[1]/cell[3]/infos/bounds"
,
"height"
);
OUString
height4
=
parseDump
(
"/root/page/body/tab/row[1]/cell[4]/infos/bounds"
,
"height"
);
// (Since w:gridBefore is worked around by faking another cell in the row, so column count is thus 5
// instead of 4, therefore compare height of cells 4 and 5 rather than 3 and 4.)
uno
::
Reference
<
text
::
XTextTablesSupplier
>
xTablesSupplier
(
mxComponent
,
uno
::
UNO_QUERY
);
uno
::
Reference
<
container
::
XIndexAccess
>
xTables
(
xTablesSupplier
->
getTextTables
(
),
uno
::
UNO_QUERY
);
uno
::
Reference
<
text
::
XTextTable
>
xTextTable
(
xTables
->
getByIndex
(
0
),
uno
::
UNO_QUERY
);
uno
::
Reference
<
table
::
XTableColumns
>
xTableColumns
(
xTextTable
->
getColumns
(),
uno
::
UNO_QUERY
);
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
5
),
xTableColumns
->
getCount
());
OUString
height3
=
parseDump
(
"/root/page/body/tab/row[1]/cell[4]/infos/bounds"
,
"height"
);
OUString
height4
=
parseDump
(
"/root/page/body/tab/row[1]/cell[5]/infos/bounds"
,
"height"
);
CPPUNIT_ASSERT_EQUAL
(
height3
,
height4
);
}
...
...
@@ -2070,8 +2077,13 @@ DECLARE_OOXMLIMPORT_TEST(testGridBefore, "gridbefore.docx")
// w:gridBefore is faked by inserting two cells without border (because Writer can't do non-rectangular tables).
// So check the first cell in the first row is in fact 3rd and that it's more to the right than the second
// cell on the second row.
OUString
textA3
=
parseDump
(
"/root/page/body/tab/row[1]/cell[1]/txt/text()"
);
OUString
leftA3
=
parseDump
(
"/root/page/body/tab/row[1]/cell[1]/infos/bounds"
,
"left"
);
uno
::
Reference
<
text
::
XTextTablesSupplier
>
xTablesSupplier
(
mxComponent
,
uno
::
UNO_QUERY
);
uno
::
Reference
<
container
::
XIndexAccess
>
xTables
(
xTablesSupplier
->
getTextTables
(
),
uno
::
UNO_QUERY
);
uno
::
Reference
<
text
::
XTextTable
>
xTextTable
(
xTables
->
getByIndex
(
0
),
uno
::
UNO_QUERY
);
uno
::
Reference
<
table
::
XTableColumns
>
xTableColumns
(
xTextTable
->
getColumns
(),
uno
::
UNO_QUERY
);
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
3
),
xTableColumns
->
getCount
());
OUString
textA3
=
parseDump
(
"/root/page/body/tab/row[1]/cell[3]/txt/text()"
);
OUString
leftA3
=
parseDump
(
"/root/page/body/tab/row[1]/cell[3]/infos/bounds"
,
"left"
);
OUString
leftB2
=
parseDump
(
"/root/page/body/tab/row[2]/cell[2]/infos/bounds"
,
"left"
);
CPPUNIT_ASSERT_EQUAL
(
OUString
(
"A3"
),
textA3
);
CPPUNIT_ASSERT
(
leftA3
.
toInt32
()
>
leftB2
.
toInt32
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment