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
58da9ef3
Kaydet (Commit)
58da9ef3
authored
Ock 26, 2015
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
merge existing date input tests to new unit test, tdf#63230
üst
ce20ba5d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
28 deletions
+2
-28
svl.cxx
svl/qa/unit/svl.cxx
+2
-28
No files found.
svl/qa/unit/svl.cxx
Dosyayı görüntüle @
58da9ef3
...
@@ -57,7 +57,6 @@ public:
...
@@ -57,7 +57,6 @@ public:
void
testSharedString
();
void
testSharedString
();
void
testSharedStringPool
();
void
testSharedStringPool
();
void
testSharedStringPoolPurge
();
void
testSharedStringPoolPurge
();
void
testFdo44286
();
void
testFdo60915
();
void
testFdo60915
();
void
testI116701
();
void
testI116701
();
void
testDateInput
();
void
testDateInput
();
...
@@ -67,7 +66,6 @@ public:
...
@@ -67,7 +66,6 @@ public:
CPPUNIT_TEST
(
testSharedString
);
CPPUNIT_TEST
(
testSharedString
);
CPPUNIT_TEST
(
testSharedStringPool
);
CPPUNIT_TEST
(
testSharedStringPool
);
CPPUNIT_TEST
(
testSharedStringPoolPurge
);
CPPUNIT_TEST
(
testSharedStringPoolPurge
);
CPPUNIT_TEST
(
testFdo44286
);
CPPUNIT_TEST
(
testFdo60915
);
CPPUNIT_TEST
(
testFdo60915
);
CPPUNIT_TEST
(
testI116701
);
CPPUNIT_TEST
(
testI116701
);
CPPUNIT_TEST
(
testDateInput
);
CPPUNIT_TEST
(
testDateInput
);
...
@@ -407,32 +405,6 @@ void Test::checkPreviewString(SvNumberFormatter& aFormatter,
...
@@ -407,32 +405,6 @@ void Test::checkPreviewString(SvNumberFormatter& aFormatter,
CPPUNIT_ASSERT_EQUAL
(
sExpected
,
sStr
);
CPPUNIT_ASSERT_EQUAL
(
sExpected
,
sStr
);
}
}
void
Test
::
testFdo44286
()
{
LanguageType
eLang
=
LANGUAGE_ENGLISH_US
;
OUString
sCode
=
"YYYY-MM-DD"
,
sExpected
;
double
fPreviewNumber
;
SvNumberFormatter
aFormatter
(
m_xContext
,
eLang
);
{
icu
::
TimeZone
::
adoptDefault
(
icu
::
TimeZone
::
createTimeZone
(
"America/Sao_Paulo"
));
sExpected
=
"1902-04-22"
;
fPreviewNumber
=
843
;
checkPreviewString
(
aFormatter
,
sCode
,
fPreviewNumber
,
eLang
,
sExpected
);
}
{
icu
::
TimeZone
::
adoptDefault
(
icu
::
TimeZone
::
createTimeZone
(
"Europe/Berlin"
));
sExpected
=
"1790-07-27"
;
fPreviewNumber
=
-
39967
;
checkPreviewString
(
aFormatter
,
sCode
,
fPreviewNumber
,
eLang
,
sExpected
);
}
{
icu
::
TimeZone
::
adoptDefault
(
icu
::
TimeZone
::
createTimeZone
(
"US/Mountain"
));
sExpected
=
"1790-07-26"
;
fPreviewNumber
=
-
39968
;
checkPreviewString
(
aFormatter
,
sCode
,
fPreviewNumber
,
eLang
,
sExpected
);
}
}
void
Test
::
testFdo60915
()
void
Test
::
testFdo60915
()
{
{
LanguageType
eLang
=
LANGUAGE_THAI
;
LanguageType
eLang
=
LANGUAGE_THAI
;
...
@@ -524,6 +496,8 @@ void Test::testDateInput()
...
@@ -524,6 +496,8 @@ void Test::testDateInput()
"Europe/Tallinn"
,
"1790-03-01"
,
// i#105864
"Europe/Tallinn"
,
"1790-03-01"
,
// i#105864
"Australia/Perth"
,
"2004-04-11"
,
// i#17222
"Australia/Perth"
,
"2004-04-11"
,
// i#17222
"America/Sao_Paulo"
,
"1902-04-22"
,
// tdf#44286
"America/Sao_Paulo"
,
"1902-04-22"
,
// tdf#44286
"Europe/Berlin"
,
"1790-07-27"
,
"US/Mountain"
,
"1790-07-26"
,
// Data from https://bugs.documentfoundation.org/show_bug.cgi?id=63230
// Data from https://bugs.documentfoundation.org/show_bug.cgi?id=63230
// https://bugs.documentfoundation.org/attachment.cgi?id=79051
// https://bugs.documentfoundation.org/attachment.cgi?id=79051
...
...
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