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
4ad994c9
Kaydet (Commit)
4ad994c9
authored
Haz 07, 2019
tarafından
Michael Meeks
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix thinko in sw unit test.
Change-Id: I6c72ce5d416151e7864e87e3b9d801a218525a16
üst
6804b001
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
tiledrendering.cxx
sw/qa/extras/tiledrendering/tiledrendering.cxx
+4
-4
No files found.
sw/qa/extras/tiledrendering/tiledrendering.cxx
Dosyayı görüntüle @
4ad994c9
...
@@ -403,7 +403,7 @@ void SwTiledRenderingTest::testGetTextSelection()
...
@@ -403,7 +403,7 @@ void SwTiledRenderingTest::testGetTextSelection()
SwXTextDocument
*
pXTextDocument
=
createDoc
(
"shape-with-text.fodt"
);
SwXTextDocument
*
pXTextDocument
=
createDoc
(
"shape-with-text.fodt"
);
// No crash, just empty output for unexpected mime type.
// No crash, just empty output for unexpected mime type.
CPPUNIT_ASSERT_EQUAL
(
OString
(),
apitest
::
helper
::
transferable
::
getTextSelection
(
pXTextDocument
->
get
Text
Selection
(),
"foo/bar"
));
CPPUNIT_ASSERT_EQUAL
(
OString
(),
apitest
::
helper
::
transferable
::
getTextSelection
(
pXTextDocument
->
getSelection
(),
"foo/bar"
));
SwWrtShell
*
pWrtShell
=
pXTextDocument
->
GetDocShell
()
->
GetWrtShell
();
SwWrtShell
*
pWrtShell
=
pXTextDocument
->
GetDocShell
()
->
GetWrtShell
();
// Move the cursor into the first word.
// Move the cursor into the first word.
...
@@ -412,10 +412,10 @@ void SwTiledRenderingTest::testGetTextSelection()
...
@@ -412,10 +412,10 @@ void SwTiledRenderingTest::testGetTextSelection()
pWrtShell
->
SelWrd
();
pWrtShell
->
SelWrd
();
// Make sure that we selected text from the body text.
// Make sure that we selected text from the body text.
CPPUNIT_ASSERT_EQUAL
(
OString
(
"Hello"
),
apitest
::
helper
::
transferable
::
getTextSelection
(
pXTextDocument
->
get
Text
Selection
(),
"text/plain;charset=utf-8"
));
CPPUNIT_ASSERT_EQUAL
(
OString
(
"Hello"
),
apitest
::
helper
::
transferable
::
getTextSelection
(
pXTextDocument
->
getSelection
(),
"text/plain;charset=utf-8"
));
// Make sure we produce something for HTML.
// Make sure we produce something for HTML.
CPPUNIT_ASSERT
(
!
apitest
::
helper
::
transferable
::
getTextSelection
(
pXTextDocument
->
get
Text
Selection
(),
"text/html"
).
isEmpty
());
CPPUNIT_ASSERT
(
!
apitest
::
helper
::
transferable
::
getTextSelection
(
pXTextDocument
->
getSelection
(),
"text/html"
).
isEmpty
());
// Now select some shape text and check again.
// Now select some shape text and check again.
SdrPage
*
pPage
=
pWrtShell
->
GetDoc
()
->
getIDocumentDrawModelAccess
().
GetDrawModel
()
->
GetPage
(
0
);
SdrPage
*
pPage
=
pWrtShell
->
GetDoc
()
->
getIDocumentDrawModelAccess
().
GetDrawModel
()
->
GetPage
(
0
);
...
@@ -426,7 +426,7 @@ void SwTiledRenderingTest::testGetTextSelection()
...
@@ -426,7 +426,7 @@ void SwTiledRenderingTest::testGetTextSelection()
EditView
&
rEditView
=
pView
->
GetTextEditOutlinerView
()
->
GetEditView
();
EditView
&
rEditView
=
pView
->
GetTextEditOutlinerView
()
->
GetEditView
();
ESelection
aWordSelection
(
0
,
0
,
0
,
5
);
ESelection
aWordSelection
(
0
,
0
,
0
,
5
);
rEditView
.
SetSelection
(
aWordSelection
);
rEditView
.
SetSelection
(
aWordSelection
);
CPPUNIT_ASSERT_EQUAL
(
OString
(
"Shape"
),
apitest
::
helper
::
transferable
::
getTextSelection
(
pXTextDocument
->
get
Text
Selection
(),
"text/plain;charset=utf-8"
));
CPPUNIT_ASSERT_EQUAL
(
OString
(
"Shape"
),
apitest
::
helper
::
transferable
::
getTextSelection
(
pXTextDocument
->
getSelection
(),
"text/plain;charset=utf-8"
));
}
}
void
SwTiledRenderingTest
::
testSetGraphicSelection
()
void
SwTiledRenderingTest
::
testSetGraphicSelection
()
...
...
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