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
e8a169c9
Kaydet (Commit)
e8a169c9
authored
Eyl 19, 2012
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
n#778828 testcase
Change-Id: I38ba0fd4128acfa114eac0b6b6e28ea49c335f0c
üst
1a60519f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
n778828.docx
sw/qa/extras/ooxmlimport/data/n778828.docx
+0
-0
ooxmlimport.cxx
sw/qa/extras/ooxmlimport/ooxmlimport.cxx
+17
-0
No files found.
sw/qa/extras/ooxmlimport/data/n778828.docx
0 → 100644
Dosyayı görüntüle @
e8a169c9
File added
sw/qa/extras/ooxmlimport/ooxmlimport.cxx
Dosyayı görüntüle @
e8a169c9
...
@@ -91,6 +91,7 @@ public:
...
@@ -91,6 +91,7 @@ public:
void
testN777337
();
void
testN777337
();
void
testN778836
();
void
testN778836
();
void
testN778140
();
void
testN778140
();
void
testN778828
();
CPPUNIT_TEST_SUITE
(
Test
);
CPPUNIT_TEST_SUITE
(
Test
);
#if !defined(MACOSX) && !defined(WNT)
#if !defined(MACOSX) && !defined(WNT)
...
@@ -124,6 +125,7 @@ public:
...
@@ -124,6 +125,7 @@ public:
CPPUNIT_TEST
(
testN777337
);
CPPUNIT_TEST
(
testN777337
);
CPPUNIT_TEST
(
testN778836
);
CPPUNIT_TEST
(
testN778836
);
CPPUNIT_TEST
(
testN778140
);
CPPUNIT_TEST
(
testN778140
);
CPPUNIT_TEST
(
testN778828
);
#endif
#endif
CPPUNIT_TEST_SUITE_END
();
CPPUNIT_TEST_SUITE_END
();
...
@@ -830,6 +832,21 @@ void Test::testN778140()
...
@@ -830,6 +832,21 @@ void Test::testN778140()
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
353
),
getProperty
<
sal_Int32
>
(
getParagraph
(
0
),
"ParaBottomMargin"
));
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
353
),
getProperty
<
sal_Int32
>
(
getParagraph
(
0
),
"ParaBottomMargin"
));
}
}
void
Test
::
testN778828
()
{
/*
* The problem was that a page break after a continous section break caused
* double page break on title page.
*/
load
(
"n778828.docx"
);
uno
::
Reference
<
frame
::
XModel
>
xModel
(
mxComponent
,
uno
::
UNO_QUERY
);
uno
::
Reference
<
text
::
XTextViewCursorSupplier
>
xTextViewCursorSupplier
(
xModel
->
getCurrentController
(),
uno
::
UNO_QUERY
);
uno
::
Reference
<
text
::
XPageCursor
>
xCursor
(
xTextViewCursorSupplier
->
getViewCursor
(),
uno
::
UNO_QUERY
);
xCursor
->
jumpToLastPage
();
CPPUNIT_ASSERT_EQUAL
(
sal_Int16
(
2
),
xCursor
->
getPage
());
}
CPPUNIT_TEST_SUITE_REGISTRATION
(
Test
);
CPPUNIT_TEST_SUITE_REGISTRATION
(
Test
);
CPPUNIT_PLUGIN_IMPLEMENT
();
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