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
93d22852
Kaydet (Commit)
93d22852
authored
Agu 23, 2012
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
n#775906 testcase
Change-Id: Idafd1b7506dac77307190df275fb8ed35d40e5e5
üst
1a3f44e5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletion
+18
-1
n775906.docx
sw/qa/extras/ooxmlimport/data/n775906.docx
+0
-0
ooxmlimport.cxx
sw/qa/extras/ooxmlimport/ooxmlimport.cxx
+18
-1
No files found.
sw/qa/extras/ooxmlimport/data/n775906.docx
0 → 100644
Dosyayı görüntüle @
93d22852
File added
sw/qa/extras/ooxmlimport/ooxmlimport.cxx
Dosyayı görüntüle @
93d22852
...
...
@@ -83,6 +83,7 @@ public:
void
testNumbering1
();
void
testBnc773061
();
void
testAllGapsWord
();
void
testN775906
();
CPPUNIT_TEST_SUITE
(
Test
);
#if !defined(MACOSX) && !defined(WNT)
...
...
@@ -110,6 +111,7 @@ public:
CPPUNIT_TEST
(
testNumbering1
);
CPPUNIT_TEST
(
testBnc773061
);
CPPUNIT_TEST
(
testAllGapsWord
);
CPPUNIT_TEST
(
testN775906
);
#endif
CPPUNIT_TEST_SUITE_END
();
...
...
@@ -638,7 +640,6 @@ void Test::testN766487()
void
Test
::
testN693238
()
{
/*
*
* The problem was that a continous section break at the end of the doc caused the margins to be ignored.
*
* xray ThisComponent.StyleFamilies.PageStyles.Default.LeftMargin ' was 2000, should be 635
...
...
@@ -719,6 +720,22 @@ void Test::testAllGapsWord()
borderTest
.
testTheBorders
(
mxComponent
);
}
void
Test
::
testN775906
()
{
/*
* The problem was that right margin (via direct formatting) erased the left/first margin (inherited from numbering style).
*
* oParas = ThisComponent.Text.createEnumeration
* oPara = oParas.nextElement
* xray oPara.ParaFirstLineIndent ' was 0
* xray oPara.ParaLeftMargin ' was 0
*/
load
(
"n775906.docx"
);
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
-
635
),
getProperty
<
sal_Int32
>
(
getParagraph
(
1
),
"ParaFirstLineIndent"
));
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
1905
),
getProperty
<
sal_Int32
>
(
getParagraph
(
1
),
"ParaLeftMargin"
));
}
CPPUNIT_TEST_SUITE_REGISTRATION
(
Test
);
CPPUNIT_PLUGIN_IMPLEMENT
();
...
...
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