diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-03-02 22:43:27 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-03-03 11:59:46 +0100 |
commit | 6f343f133800fe09d64be0a3d8ba295eeb877045 (patch) | |
tree | ed6ebf1267b916e87b623e4d28570d926f281c77 /sc | |
parent | cf1c835e8016f8f1eefea6d625a913c0ac343a63 (diff) |
tdf#72470: sc_subsequent_filters: Add unittest
Change-Id: Ia43626e11c37f06eb3534182187d4255a9336fd8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111850
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/unit/data/xls/tdf72470.xls | bin | 0 -> 90 bytes | |||
-rw-r--r-- | sc/qa/unit/subsequent_filters-test.cxx | 17 |
2 files changed, 17 insertions, 0 deletions
diff --git a/sc/qa/unit/data/xls/tdf72470.xls b/sc/qa/unit/data/xls/tdf72470.xls Binary files differnew file mode 100644 index 000000000000..99d0c1f0fd00 --- /dev/null +++ b/sc/qa/unit/data/xls/tdf72470.xls diff --git a/sc/qa/unit/subsequent_filters-test.cxx b/sc/qa/unit/subsequent_filters-test.cxx index c85f8d2dbdc5..fa969a78c4d0 100644 --- a/sc/qa/unit/subsequent_filters-test.cxx +++ b/sc/qa/unit/subsequent_filters-test.cxx @@ -295,6 +295,7 @@ public: void testTdf137091(); void testTdf62268(); void testTdf137453(); + void testTdf72470(); void testTdf35636(); void testVBAMacroFunctionODS(); void testAutoheight2Rows(); @@ -487,6 +488,7 @@ public: CPPUNIT_TEST(testTdf137091); CPPUNIT_TEST(testTdf62268); CPPUNIT_TEST(testTdf137453); + CPPUNIT_TEST(testTdf72470); CPPUNIT_TEST(testTdf35636); CPPUNIT_TEST(testVBAMacroFunctionODS); CPPUNIT_TEST(testAutoheight2Rows); @@ -5191,6 +5193,21 @@ void ScFiltersTest::testTdf137453() xDocSh->DoClose(); } +void ScFiltersTest::testTdf72470() +{ + // Without the fix in place, this test would have hung + + ScDocShellRef xDocSh = loadDoc(u"tdf72470.", FORMAT_XLS); + CPPUNIT_ASSERT_MESSAGE("Failed to open doc", xDocSh.is()); + + ScDocument& rDoc = xDocSh->GetDocument(); + + CPPUNIT_ASSERT_EQUAL(OUString("name"), rDoc.GetString(ScAddress(0,0,0))); + CPPUNIT_ASSERT_EQUAL(OUString(u"أسمي walid"), rDoc.GetString(ScAddress(0,1,0))); + + xDocSh->DoClose(); +} + void ScFiltersTest::testTdf35636() { ScDocShellRef xDocSh = loadDoc(u"tdf35636.", FORMAT_ODS); |