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
978c6b87
Kaydet (Commit)
978c6b87
authored
Agu 08, 2012
tarafından
Artur Dorda
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
All the MeasureUnit values are covered in converter test
Change-Id: I6c447bb3948566ad10d9935397089ed1fceac1da
üst
22f29555
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
test_converter.cxx
sax/qa/cppunit/test_converter.cxx
+20
-1
No files found.
sax/qa/cppunit/test_converter.cxx
Dosyayı görüntüle @
978c6b87
...
@@ -324,7 +324,26 @@ void doTestStringToMeasure(sal_Int32 rValue, char const*const pis, sal_Int16 nTa
...
@@ -324,7 +324,26 @@ void doTestStringToMeasure(sal_Int32 rValue, char const*const pis, sal_Int16 nTa
void
ConverterTest
::
testMeasure
()
void
ConverterTest
::
testMeasure
()
{
{
doTestStringToMeasure
(
1000
,
"10mm"
,
MeasureUnit
::
MM_100TH
,
1
,
4321
);
doTestStringToMeasure
(
1000
,
"10mm"
,
MeasureUnit
::
MM_100TH
,
-
1
,
4321
);
doTestStringToMeasure
(
200
,
"20mm"
,
MeasureUnit
::
MM_10TH
,
12
,
4567
);
doTestStringToMeasure
(
300
,
"300"
,
MeasureUnit
::
MM
,
31
,
555
);
doTestStringToMeasure
(
400
,
"400"
,
MeasureUnit
::
CM
,
10
,
4321
);
doTestStringToMeasure
(
120
,
"120"
,
MeasureUnit
::
INCH_1000TH
,
10
,
4321
);
doTestStringToMeasure
(
111
,
"111"
,
MeasureUnit
::
INCH_100TH
,
10
,
4321
);
doTestStringToMeasure
(
22
,
"22"
,
MeasureUnit
::
INCH_10TH
,
10
,
4321
);
doTestStringToMeasure
(
27
,
"27"
,
MeasureUnit
::
INCH
,
10
,
4321
);
doTestStringToMeasure
(
52
,
"52"
,
MeasureUnit
::
POINT
,
10
,
4321
);
doTestStringToMeasure
(
120
,
"120"
,
MeasureUnit
::
TWIP
,
10
,
4321
);
doTestStringToMeasure
(
666
,
"666"
,
MeasureUnit
::
M
,
10
,
4321
);
doTestStringToMeasure
(
42
,
"42"
,
MeasureUnit
::
KM
,
10
,
4321
);
doTestStringToMeasure
(
30
,
"30"
,
MeasureUnit
::
PICA
,
10
,
4321
);
doTestStringToMeasure
(
20
,
"20"
,
MeasureUnit
::
FOOT
,
10
,
4321
);
doTestStringToMeasure
(
40
,
"40"
,
MeasureUnit
::
MILE
,
10
,
4321
);
doTestStringToMeasure
(
40
,
"40%"
,
MeasureUnit
::
PERCENT
,
10
,
4321
);
doTestStringToMeasure
(
800
,
"800"
,
MeasureUnit
::
PIXEL
,
10
,
4321
);
doTestStringToMeasure
(
600
,
"600px"
,
MeasureUnit
::
PIXEL
,
10
,
4321
);
doTestStringToMeasure
(
777
,
"777"
,
MeasureUnit
::
APPFONT
,
10
,
4321
);
doTestStringToMeasure
(
80000
,
"80000"
,
MeasureUnit
::
SYSFONT
,
10
,
432100
);
}
}
CPPUNIT_TEST_SUITE_REGISTRATION
(
ConverterTest
);
CPPUNIT_TEST_SUITE_REGISTRATION
(
ConverterTest
);
...
...
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