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
30cc43a5
Kaydet (Commit)
30cc43a5
authored
May 17, 2014
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#77735: Write test for this. This test will freeze with the bug present.
Change-Id: I7b7e67fe2ee59b57ce74f8303d30bebc84f6b0d0
üst
e8b2e916
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
ucalc.cxx
sc/qa/unit/ucalc.cxx
+25
-0
ucalc.hxx
sc/qa/unit/ucalc.hxx
+2
-0
No files found.
sc/qa/unit/ucalc.cxx
Dosyayı görüntüle @
30cc43a5
...
@@ -3706,6 +3706,31 @@ void Test::testCopyPasteSkipEmpty()
...
@@ -3706,6 +3706,31 @@ void Test::testCopyPasteSkipEmpty()
m_pDoc->DeleteTab(0);
m_pDoc->DeleteTab(0);
}
}
void Test::testCopyPasteSkipEmpty2()
{
m_pDoc->InsertTab(0, "Test");
m_pDoc->SetString(ScAddress(0,0,0), "A");
m_pDoc->SetString(ScAddress(2,0,0), "C");
// Copy A1:C1 to clipboard.
ScDocument aClipDoc(SCDOCMODE_CLIP);
aClipDoc.ResetClip(m_pDoc, static_cast<SCTAB>(0));
copyToClip(m_pDoc, ScRange(0,0,0,2,0,0), &aClipDoc);
// Paste to A3 with the skip empty option set. This used to freeze. (fdo#77735)
ScRange aDestRange(0,2,0,2,2,0);
ScMarkData aMark;
aMark.SetMarkArea(aDestRange);
m_pDoc->CopyFromClip(aDestRange, aMark, IDF_ALL, NULL, &aClipDoc, false, false, true, true);
CPPUNIT_ASSERT_EQUAL(OUString("A"), m_pDoc->GetString(ScAddress(0,2,0)));
CPPUNIT_ASSERT_MESSAGE("B3 should be empty.", m_pDoc->GetCellType(ScAddress(1,2,0)) == CELLTYPE_NONE);
CPPUNIT_ASSERT_EQUAL(OUString("C"), m_pDoc->GetString(ScAddress(2,2,0)));
m_pDoc->DeleteTab(0);
}
void Test::testCopyPasteSkipEmptyConditionalFormatting()
void Test::testCopyPasteSkipEmptyConditionalFormatting()
{
{
m_pDoc->InsertTab(0, "Test");
m_pDoc->InsertTab(0, "Test");
...
...
sc/qa/unit/ucalc.hxx
Dosyayı görüntüle @
30cc43a5
...
@@ -273,6 +273,7 @@ public:
...
@@ -273,6 +273,7 @@ public:
void
testCopyPasteTranspose
();
void
testCopyPasteTranspose
();
void
testCopyPasteMultiRange
();
void
testCopyPasteMultiRange
();
void
testCopyPasteSkipEmpty
();
void
testCopyPasteSkipEmpty
();
void
testCopyPasteSkipEmpty2
();
void
testCopyPasteSkipEmptyConditionalFormatting
();
void
testCopyPasteSkipEmptyConditionalFormatting
();
void
testCutPasteRefUndo
();
void
testCutPasteRefUndo
();
void
testUndoCut
();
void
testUndoCut
();
...
@@ -469,6 +470,7 @@ public:
...
@@ -469,6 +470,7 @@ public:
CPPUNIT_TEST
(
testCopyPasteTranspose
);
CPPUNIT_TEST
(
testCopyPasteTranspose
);
CPPUNIT_TEST
(
testCopyPasteMultiRange
);
CPPUNIT_TEST
(
testCopyPasteMultiRange
);
CPPUNIT_TEST
(
testCopyPasteSkipEmpty
);
CPPUNIT_TEST
(
testCopyPasteSkipEmpty
);
CPPUNIT_TEST
(
testCopyPasteSkipEmpty2
);
//CPPUNIT_TEST(testCopyPasteSkipEmptyConditionalFormatting);
//CPPUNIT_TEST(testCopyPasteSkipEmptyConditionalFormatting);
CPPUNIT_TEST
(
testCutPasteRefUndo
);
CPPUNIT_TEST
(
testCutPasteRefUndo
);
CPPUNIT_TEST
(
testUndoCut
);
CPPUNIT_TEST
(
testUndoCut
);
...
...
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