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
50532e3f
Kaydet (Commit)
50532e3f
authored
Mar 08, 2014
tarafından
Markus Mohrhard
Kaydeden (comit)
Markus Mohrhard
Mar 08, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
enable ODF export validation
Change-Id: I09f517a49507a2eb31118f88f31dc2ff8b03de6a
üst
25cd2f4b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
qahelper.cxx
sc/qa/unit/helper/qahelper.cxx
+2
-0
bootstrapfixture.cxx
test/source/bootstrapfixture.cxx
+11
-1
No files found.
sc/qa/unit/helper/qahelper.cxx
Dosyayı görüntüle @
50532e3f
...
@@ -616,6 +616,8 @@ ScDocShellRef ScBootstrapFixture::saveAndReload(
...
@@ -616,6 +616,8 @@ ScDocShellRef ScBootstrapFixture::saveAndReload(
ScDocShellRef
xDocSh
=
load
(
aTempFile
.
GetURL
(),
rFilter
,
rUserData
,
rTypeName
,
nFormatType
,
nFormat
);
ScDocShellRef
xDocSh
=
load
(
aTempFile
.
GetURL
(),
rFilter
,
rUserData
,
rTypeName
,
nFormatType
,
nFormat
);
if
(
nFormatType
==
XLSX_FORMAT_TYPE
)
if
(
nFormatType
==
XLSX_FORMAT_TYPE
)
validate
(
aTempFile
.
GetFileName
(),
test
::
OOXML
);
validate
(
aTempFile
.
GetFileName
(),
test
::
OOXML
);
else
if
(
nFormatType
==
ODS_FORMAT_TYPE
)
validate
(
aTempFile
.
GetFileName
(),
test
::
ODF
);
return
xDocSh
;
return
xDocSh
;
}
}
...
...
test/source/bootstrapfixture.cxx
Dosyayı görüntüle @
50532e3f
...
@@ -150,7 +150,9 @@ void test::BootstrapFixture::validate(const OUString& rPath, test::ValidationFor
...
@@ -150,7 +150,9 @@ void test::BootstrapFixture::validate(const OUString& rPath, test::ValidationFor
aValidator
=
"officeotron "
;
aValidator
=
"officeotron "
;
}
}
else
else
return
;
{
aValidator
=
"odfvalidator "
;
}
utl
::
TempFile
aOutput
;
utl
::
TempFile
aOutput
;
aOutput
.
EnableKillingFile
();
aOutput
.
EnableKillingFile
();
...
@@ -184,6 +186,14 @@ void test::BootstrapFixture::validate(const OUString& rPath, test::ValidationFor
...
@@ -184,6 +186,14 @@ void test::BootstrapFixture::validate(const OUString& rPath, test::ValidationFor
CPPUNIT_ASSERT_EQUAL_MESSAGE
(
aMsg
.
getStr
(),
sal_Int32
(
0
),
nErrors
);
CPPUNIT_ASSERT_EQUAL_MESSAGE
(
aMsg
.
getStr
(),
sal_Int32
(
0
),
nErrors
);
}
}
}
}
else
if
(
eFormat
==
test
::
ODF
&&
!
aContentOUString
.
isEmpty
()
)
{
if
(
aContentOUString
.
indexOf
(
"Error"
)
!=
-
1
)
{
SAL_WARN
(
"test"
,
aContentOUString
);
CPPUNIT_FAIL
(
"validation errors during export"
);
}
}
#endif
#endif
}
}
...
...
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