diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-02-05 14:38:43 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-02-05 14:40:58 -0500 |
commit | 7d3ddc2c6cc39fdd671f08059528464675cd6ecc (patch) | |
tree | b5e941937065d769dc9bdaa0ce144d1f91585360 /sc/qa/extras/scnamedrangeobj.cxx | |
parent | a0dd5a8d6a9213ad40d738f8639e1500a1b59caa (diff) |
Pass DocumentService to the loader during macro tests.
And disable user interaction during type detection, since that would
cause the test to fail.
With this change, 'make check' works once again.
Change-Id: I2f45a2e962e45ee64f7984e794cff814fbfe6dab
Diffstat (limited to 'sc/qa/extras/scnamedrangeobj.cxx')
-rw-r--r-- | sc/qa/extras/scnamedrangeobj.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/qa/extras/scnamedrangeobj.cxx b/sc/qa/extras/scnamedrangeobj.cxx index 81882e54ebc5..95e2b0f75e25 100644 --- a/sc/qa/extras/scnamedrangeobj.cxx +++ b/sc/qa/extras/scnamedrangeobj.cxx @@ -84,7 +84,7 @@ uno::Reference< sheet::XNamedRanges > ScNamedRangeObj::init_impl() rtl::OUString aFileURL; createFileURL(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ScNamedRangeObj.ods")), aFileURL); if(!mxComponent.is()) - mxComponent = loadFromDesktop(aFileURL); + mxComponent = loadFromDesktop(aFileURL, "com.sun.star.sheet.SpreadsheetDocument"); CPPUNIT_ASSERT(mxComponent.is()); uno::Reference< beans::XPropertySet > xPropSet (mxComponent, UNO_QUERY_THROW); |