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
0e633c51
Kaydet (Commit)
0e633c51
authored
Agu 15, 2014
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add test for fdo#82128
Change-Id: I3dd0005f00c4a861103ffd1a0422b9fc9397f6fb
üst
2cc0109c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
0 deletions
+33
-0
sheet-protection.ods
sc/qa/unit/data/ods/sheet-protection.ods
+0
-0
subsequent_export-test.cxx
sc/qa/unit/subsequent_export-test.cxx
+33
-0
No files found.
sc/qa/unit/data/ods/sheet-protection.ods
0 → 100644
Dosyayı görüntüle @
0e633c51
File added
sc/qa/unit/subsequent_export-test.cxx
Dosyayı görüntüle @
0e633c51
...
...
@@ -116,6 +116,7 @@ public:
#endif
void
testRelativePaths
();
void
testSheetProtection
();
CPPUNIT_TEST_SUITE
(
ScExportTest
);
CPPUNIT_TEST
(
test
);
...
...
@@ -152,6 +153,7 @@ public:
#if !defined(WNT)
CPPUNIT_TEST
(
testRelativePaths
);
#endif
CPPUNIT_TEST
(
testSheetProtection
);
/* TODO: export to ODS currently (2014-04-28) makes the validator stumble,
* probably due to a loext:fill-character attribute in a
...
...
@@ -1932,6 +1934,37 @@ void ScExportTest::testRelativePaths()
CPPUNIT_ASSERT
(
aURL
.
startsWith
(
".."
));
}
namespace
{
void
testSheetProtection_Impl
(
ScDocument
&
rDoc
)
{
CPPUNIT_ASSERT
(
rDoc
.
IsTabProtected
(
0
));
ScTableProtection
*
pTabProtection
=
rDoc
.
GetTabProtection
(
0
);
CPPUNIT_ASSERT
(
pTabProtection
->
isOptionEnabled
(
ScTableProtection
::
SELECT_UNLOCKED_CELLS
));
CPPUNIT_ASSERT
(
!
pTabProtection
->
isOptionEnabled
(
ScTableProtection
::
SELECT_LOCKED_CELLS
));
}
}
void
ScExportTest
::
testSheetProtection
()
{
ScDocShellRef
xDocSh
=
loadDoc
(
"sheet-protection."
,
ODS
);
CPPUNIT_ASSERT
(
xDocSh
.
Is
());
{
ScDocument
&
rDoc
=
xDocSh
->
GetDocument
();
testSheetProtection_Impl
(
rDoc
);
}
ScDocShellRef
xDocSh2
=
saveAndReload
(
xDocSh
,
ODS
);
{
ScDocument
&
rDoc
=
xDocSh2
->
GetDocument
();
testSheetProtection_Impl
(
rDoc
);
}
xDocSh2
->
DoClose
();
}
#if 0
void ScExportTest::testFunctionsExcel2010ODS()
{
...
...
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