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
bfffa6d7
Kaydet (Commit)
bfffa6d7
authored
Nis 29, 2013
tarafından
Thorsten Behrens
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add unit test for pdfimport image import.
Change-Id: Ifd51f0c25418085ba8a6e8d331ac5c6d8139d18a
üst
dd24f185
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
tests.cxx
sdext/source/pdfimport/test/tests.cxx
+5
-1
No files found.
sdext/source/pdfimport/test/tests.cxx
Dosyayı görüntüle @
bfffa6d7
...
@@ -82,7 +82,8 @@ namespace
...
@@ -82,7 +82,8 @@ namespace
m_bPageEnded
(
false
),
m_bPageEnded
(
false
),
m_bRedCircleSeen
(
false
),
m_bRedCircleSeen
(
false
),
m_bGreenStrokeSeen
(
false
),
m_bGreenStrokeSeen
(
false
),
m_bDashedLineSeen
(
false
)
m_bDashedLineSeen
(
false
),
m_bImageSeen
(
false
)
{}
{}
~
TestSink
()
~
TestSink
()
...
@@ -111,6 +112,7 @@ namespace
...
@@ -111,6 +112,7 @@ namespace
CPPUNIT_ASSERT_MESSAGE
(
"red circle seen in input"
,
m_bRedCircleSeen
);
CPPUNIT_ASSERT_MESSAGE
(
"red circle seen in input"
,
m_bRedCircleSeen
);
CPPUNIT_ASSERT_MESSAGE
(
"green stroke seen in input"
,
m_bGreenStrokeSeen
);
CPPUNIT_ASSERT_MESSAGE
(
"green stroke seen in input"
,
m_bGreenStrokeSeen
);
CPPUNIT_ASSERT_MESSAGE
(
"dashed line seen in input"
,
m_bDashedLineSeen
);
CPPUNIT_ASSERT_MESSAGE
(
"dashed line seen in input"
,
m_bDashedLineSeen
);
CPPUNIT_ASSERT_MESSAGE
(
"image seen in input"
,
m_bImageSeen
);
}
}
private
:
private
:
...
@@ -377,6 +379,7 @@ namespace
...
@@ -377,6 +379,7 @@ namespace
xBitmap
[
0
].
Name
.
compareToAscii
(
"URL"
)
==
0
);
xBitmap
[
0
].
Name
.
compareToAscii
(
"URL"
)
==
0
);
CPPUNIT_ASSERT_MESSAGE
(
"drawImage got InputStream param"
,
CPPUNIT_ASSERT_MESSAGE
(
"drawImage got InputStream param"
,
xBitmap
[
1
].
Name
.
compareToAscii
(
"InputStream"
)
==
0
);
xBitmap
[
1
].
Name
.
compareToAscii
(
"InputStream"
)
==
0
);
m_bImageSeen
=
true
;
}
}
virtual
void
drawColorMaskedImage
(
const
uno
::
Sequence
<
beans
::
PropertyValue
>&
xBitmap
,
virtual
void
drawColorMaskedImage
(
const
uno
::
Sequence
<
beans
::
PropertyValue
>&
xBitmap
,
...
@@ -450,6 +453,7 @@ namespace
...
@@ -450,6 +453,7 @@ namespace
bool
m_bRedCircleSeen
;
bool
m_bRedCircleSeen
;
bool
m_bGreenStrokeSeen
;
bool
m_bGreenStrokeSeen
;
bool
m_bDashedLineSeen
;
bool
m_bDashedLineSeen
;
bool
m_bImageSeen
;
};
};
class
PDFITest
:
public
test
::
BootstrapFixture
class
PDFITest
:
public
test
::
BootstrapFixture
...
...
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