Kaydet (Commit) fb89b081 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

add test for non-ascii gnumeric file names, tdf#107827

Change-Id: Ib530567df9cb487951d8dbf1b7824f78a7d150d9
Reviewed-on: https://gerrit.libreoffice.org/37581Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
üst 2f2eba56
...@@ -239,6 +239,9 @@ public: ...@@ -239,6 +239,9 @@ public:
void testTdf97598XLSX(); void testTdf97598XLSX();
void testPageScalingXLSX(); void testPageScalingXLSX();
#ifdef UNX
void testUnicodeFileNameGnumeric();
#endif
CPPUNIT_TEST_SUITE(ScFiltersTest); CPPUNIT_TEST_SUITE(ScFiltersTest);
CPPUNIT_TEST(testBooleanFormatXLSX); CPPUNIT_TEST(testBooleanFormatXLSX);
...@@ -361,6 +364,9 @@ public: ...@@ -361,6 +364,9 @@ public:
CPPUNIT_TEST(testTdf97598XLSX); CPPUNIT_TEST(testTdf97598XLSX);
CPPUNIT_TEST(testPageScalingXLSX); CPPUNIT_TEST(testPageScalingXLSX);
#ifdef UNX
CPPUNIT_TEST(testUnicodeFileNameGnumeric);
#endif
CPPUNIT_TEST_SUITE_END(); CPPUNIT_TEST_SUITE_END();
...@@ -3880,6 +3886,17 @@ void ScFiltersTest::testTdf97598XLSX() ...@@ -3880,6 +3886,17 @@ void ScFiltersTest::testTdf97598XLSX()
xDocSh->DoClose(); xDocSh->DoClose();
} }
#ifdef UNX
void ScFiltersTest::testUnicodeFileNameGnumeric()
{
OString aFileNamePrefix= "t" + OString(RTL_CONSTASCII_STRINGPARAM("\u00e4\u00df")) + "t.";
ScDocShellRef xDocSh = loadDoc(OStringToOUString(aFileNamePrefix, RTL_TEXTENCODING_UTF8), FORMAT_GNUMERIC);
CPPUNIT_ASSERT(xDocSh.is());
xDocSh->DoClose();
}
#endif
void ScFiltersTest::testCondFormatXLSB() void ScFiltersTest::testCondFormatXLSB()
{ {
ScDocShellRef xDocSh = loadDoc("cond_format.", FORMAT_XLSB); ScDocShellRef xDocSh = loadDoc("cond_format.", FORMAT_XLSB);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment