summaryrefslogtreecommitdiff
path: root/xmloff/qa/unit
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/qa/unit')
-rw-r--r--xmloff/qa/unit/draw.cxx30
-rw-r--r--xmloff/qa/unit/style.cxx30
-rw-r--r--xmloff/qa/unit/text.cxx42
-rw-r--r--xmloff/qa/unit/text/txtprmap.cxx2
4 files changed, 52 insertions, 52 deletions
diff --git a/xmloff/qa/unit/draw.cxx b/xmloff/qa/unit/draw.cxx
index 13c77387b054..8d89065d4438 100644
--- a/xmloff/qa/unit/draw.cxx
+++ b/xmloff/qa/unit/draw.cxx
@@ -88,7 +88,7 @@ uno::Reference<drawing::XShape> XmloffDrawTest::getShape(sal_uInt8 nShapeIndex)
CPPUNIT_TEST_FIXTURE(XmloffDrawTest, testTextBoxLoss)
{
// Load a document that has a shape with a textbox in it. Save it to ODF and reload.
- loadFromURL(u"textbox-loss.docx");
+ loadFromFile(u"textbox-loss.docx");
saveAndReload("impress8");
// Make sure that the shape is still a textbox.
@@ -106,7 +106,7 @@ CPPUNIT_TEST_FIXTURE(XmloffDrawTest, testTextBoxLoss)
CPPUNIT_TEST_FIXTURE(XmloffDrawTest, testTdf141301_Extrusion_Angle)
{
// Load a document that has a custom shape with extrusion direction as set by LO as its default.
- loadFromURL(u"tdf141301_Extrusion_Skew.odg");
+ loadFromFile(u"tdf141301_Extrusion_Skew.odg");
// Prepare use of XPath
save("draw8");
@@ -161,7 +161,7 @@ CPPUNIT_TEST_FIXTURE(XmloffDrawTest, testThemeExport)
CPPUNIT_TEST_FIXTURE(XmloffDrawTest, testVideoSnapshot)
{
// Execute ODP import:
- loadFromURL(u"video-snapshot.odp");
+ loadFromFile(u"video-snapshot.odp");
uno::Reference<drawing::XDrawPagesSupplier> xDrawPagesSupplier(mxComponent,
uno::UNO_QUERY_THROW);
CPPUNIT_ASSERT(xDrawPagesSupplier.is());
@@ -204,7 +204,7 @@ CPPUNIT_TEST_FIXTURE(XmloffDrawTest, testVideoSnapshot)
CPPUNIT_TEST_FIXTURE(XmloffDrawTest, testThemeImport)
{
// Given a document that has a master page with a theme associated:
- loadFromURL(u"theme.fodp");
+ loadFromFile(u"theme.fodp");
// Then make sure the doc model has a master page with a theme:
uno::Reference<drawing::XDrawPagesSupplier> xDrawPagesSupplier(mxComponent, uno::UNO_QUERY);
@@ -271,7 +271,7 @@ void checkFillAndLineComplexColors(uno::Reference<drawing::XShape> const& xShape
CPPUNIT_TEST_FIXTURE(XmloffDrawTest, testFillAndLineThemeColorExportImport)
{
- loadFromURL(u"FillAndStrokeThemeColorTest.fodp");
+ loadFromFile(u"FillAndStrokeThemeColorTest.fodp");
checkFillAndLineComplexColors(getShape(0));
@@ -285,7 +285,7 @@ CPPUNIT_TEST_FIXTURE(XmloffDrawTest, testFillAndLineThemeColorExportImport)
CPPUNIT_TEST_FIXTURE(XmloffDrawTest, testTextAndFillThemeColorExportImport)
{
// Given a document that refers to a theme color:
- loadFromURL(u"Reference-ThemeColors-TextAndFill.pptx");
+ loadFromFile(u"Reference-ThemeColors-TextAndFill.pptx");
save("impress8");
// Make sure the export result has the theme reference:
@@ -460,7 +460,7 @@ CPPUNIT_TEST_FIXTURE(XmloffDrawTest, testTextAndFillThemeColorExportImport)
CPPUNIT_TEST_FIXTURE(XmloffDrawTest, testThemeColor_ShapeFill)
{
- loadFromURL(u"ReferenceShapeFill.pptx");
+ loadFromFile(u"ReferenceShapeFill.pptx");
save("impress8");
// reload
load(maTempFile.GetURL());
@@ -484,7 +484,7 @@ CPPUNIT_TEST_FIXTURE(XmloffDrawTest, testTableInShape)
{
// Given a document with a shape with a "FrameX" parent style (starts with Frame, but is not
// Frame):
- loadFromURL(u"table-in-shape.fodt");
+ loadFromFile(u"table-in-shape.fodt");
// Then make sure the table inside the shape is not lost:
uno::Reference<drawing::XDrawPageSupplier> xDrawPageSupplier(mxComponent, uno::UNO_QUERY);
@@ -527,7 +527,7 @@ void lcl_assertMetalProperties(std::string_view sInfo, uno::Reference<drawing::X
CPPUNIT_TEST_FIXTURE(XmloffDrawTest, testExtrusionMetalTypeExtended)
{
- loadFromURL(u"tdf145700_3D_metal_type_MSCompatible.doc");
+ loadFromFile(u"tdf145700_3D_metal_type_MSCompatible.doc");
// verify properties
uno::Reference<drawing::XShape> xShape(getShape(0));
lcl_assertMetalProperties("from doc", xShape);
@@ -551,7 +551,7 @@ CPPUNIT_TEST_FIXTURE(XmloffDrawTest, testExtrusionMetalTypeExtended)
CPPUNIT_TEST_FIXTURE(XmloffDrawTest, testExtrusionMetalTypeStrict)
{
- loadFromURL(u"tdf145700_3D_metal_type_MSCompatible.doc");
+ loadFromFile(u"tdf145700_3D_metal_type_MSCompatible.doc");
// save ODF 1.3 strict and test, that new attribute is not written. Adapt when attribute is
// added to ODF.
@@ -588,7 +588,7 @@ void lcl_assertSpecularityProperty(std::string_view sInfo, uno::Reference<drawin
CPPUNIT_TEST_FIXTURE(XmloffDrawTest, testExtrusionSpecularityExtended)
{
- loadFromURL(u"tdf147580_extrusion-specularity.doc");
+ loadFromFile(u"tdf147580_extrusion-specularity.doc");
// verify property
uno::Reference<drawing::XShape> xShape(getShape(0));
lcl_assertSpecularityProperty("from doc", xShape);
@@ -612,7 +612,7 @@ CPPUNIT_TEST_FIXTURE(XmloffDrawTest, testExtrusionSpecularityExtended)
CPPUNIT_TEST_FIXTURE(XmloffDrawTest, testExtrusionSpecularity)
{
- loadFromURL(u"tdf147580_extrusion-specularity.doc");
+ loadFromFile(u"tdf147580_extrusion-specularity.doc");
// The file has c3DSpecularAmt="80000" which results internally in specularity=122%.
// Save to ODF 1.3 strict and make sure it does not produce a validation error.
@@ -661,7 +661,7 @@ bool lcl_getShapeSegments(uno::Sequence<drawing::EnhancedCustomShapeSegment>& rS
CPPUNIT_TEST_FIXTURE(XmloffDrawTest, testTdf148714_CurvedArrowsOld)
{
// Load a document with CurveArrow shapes with faulty path as written by older LO versions.
- loadFromURL(u"tdf148714_CurvedArrowsOld.odp");
+ loadFromFile(u"tdf148714_CurvedArrowsOld.odp");
// Make sure, that the error has been corrected on opening.
for (sal_Int32 nShapeIndex = 0; nShapeIndex < 4; nShapeIndex++)
@@ -699,7 +699,7 @@ CPPUNIT_TEST_FIXTURE(XmloffDrawTest, testTdf148714_CurvedArrowsOld)
CPPUNIT_TEST_FIXTURE(XmloffDrawTest, testTextRotationPlusPre)
{
- loadFromURL(u"tdf149551_verticalText.pptx");
+ loadFromFile(u"tdf149551_verticalText.pptx");
// The file has a shape with attribute vert="vert" in <bodyPr> element. That generates a
// TextPreRotateAngle attribute in CustomShapeGeometry.
@@ -782,7 +782,7 @@ CPPUNIT_TEST_FIXTURE(XmloffDrawTest, testTdf157018_ThemeImportDraw)
{
// Similar to testThemeImport but for Draw.
// Load document with custom color theme
- loadFromURL(u"tdf157018_CustomTheme.fodg");
+ loadFromFile(u"tdf157018_CustomTheme.fodg");
// First make sure the doc model has a master page with a theme:
uno::Reference<drawing::XDrawPagesSupplier> xDrawPagesSupplier(mxComponent, uno::UNO_QUERY);
diff --git a/xmloff/qa/unit/style.cxx b/xmloff/qa/unit/style.cxx
index 3d30b0176ba1..178b0f216154 100644
--- a/xmloff/qa/unit/style.cxx
+++ b/xmloff/qa/unit/style.cxx
@@ -53,7 +53,7 @@ uno::Reference<drawing::XShape> XmloffStyleTest::getShape(sal_uInt8 nShapeIndex)
CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testFillImageBase64)
{
// Load a flat ODG that has base64-encoded bitmap as a fill style.
- loadFromURL(u"fill-image-base64.fodg");
+ loadFromFile(u"fill-image-base64.fodg");
uno::Reference<lang::XMultiServiceFactory> xFactory(mxComponent, uno::UNO_QUERY);
uno::Reference<container::XNameContainer> xBitmaps(
xFactory->createInstance("com.sun.star.drawing.BitmapTable"), uno::UNO_QUERY);
@@ -151,7 +151,7 @@ CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testRtlGutter)
{
// Given a document with a gutter margin and an RTL writing mode:
// When loading that document from ODF:
- loadFromURL(u"rtl-gutter.fodt");
+ loadFromFile(u"rtl-gutter.fodt");
// Then make sure the page style's RtlGutter property is true.
uno::Reference<style::XStyleFamiliesSupplier> xStyleFamiliesSupplier(mxComponent,
@@ -174,7 +174,7 @@ CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testWritingModeBTLR)
// Load document. It has a frame style with writing-mode bt-lr.
// In ODF 1.3 extended it is written as loext:writing-mode="bt-lr".
// In ODF 1.3 strict, there must not be an attribute at all.
- loadFromURL(u"tdf150407_WritingModeBTLR_style.odt");
+ loadFromFile(u"tdf150407_WritingModeBTLR_style.odt");
Resetter _([]() {
std::shared_ptr<comphelper::ConfigurationChanges> pBatch(
@@ -203,7 +203,7 @@ CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testWritingModeBTLR)
"writing-mode"_ostr, "bt-lr");
}
- loadFromURL(u"tdf150407_WritingModeBTLR_style.odt");
+ loadFromFile(u"tdf150407_WritingModeBTLR_style.odt");
// Save to ODF 1.3 strict.
{
std::shared_ptr<comphelper::ConfigurationChanges> pBatch(
@@ -227,7 +227,7 @@ CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testPosRelBottomMargin)
// Load document. It has a frame position with vertical position relative to bottom margin.
// In ODF 1.3 extended it is written as loext:vertical-rel="page-content-bottom".
// In ODF 1.3 strict, there must not be an attribute at all.
- loadFromURL(u"tdf150407_PosRelBottomMargin.docx");
+ loadFromFile(u"tdf150407_PosRelBottomMargin.docx");
Resetter _([]() {
std::shared_ptr<comphelper::ConfigurationChanges> pBatch(
@@ -259,7 +259,7 @@ CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testPosRelBottomMargin)
"vertical-rel"_ostr, "page-content-bottom");
}
- loadFromURL(u"tdf150407_PosRelBottomMargin.docx");
+ loadFromFile(u"tdf150407_PosRelBottomMargin.docx");
// Save to ODF 1.3 strict.
{
std::shared_ptr<comphelper::ConfigurationChanges> pBatch(
@@ -283,7 +283,7 @@ CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testPosRelTopMargin)
// Load document. It has a frame position with vertical position relative to top margin.
// In ODF 1.3 extended it is written as loext:vertical-rel="page-content-top".
// In ODF 1.3 strict, there must not be an attribute at all.
- loadFromURL(u"tdf150407_PosRelTopMargin.docx");
+ loadFromFile(u"tdf150407_PosRelTopMargin.docx");
Resetter _([]() {
std::shared_ptr<comphelper::ConfigurationChanges> pBatch(
@@ -315,7 +315,7 @@ CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testPosRelTopMargin)
"vertical-rel"_ostr, "page-content-top");
}
- loadFromURL(u"tdf150407_PosRelTopMargin.docx");
+ loadFromFile(u"tdf150407_PosRelTopMargin.docx");
// Save to ODF 1.3 strict.
{
std::shared_ptr<comphelper::ConfigurationChanges> pBatch(
@@ -338,7 +338,7 @@ CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testMCGR_OldToNew)
{
// The file contains a shape with linear gradient fill from red #ff0000 to yellow #ffff00,
// named 'red2yellow'
- loadFromURL(u"MCGR_OldToNew.odg");
+ loadFromFile(u"MCGR_OldToNew.odg");
// saveAndReload includes validation and must not fail with the new elements and attributes.
saveAndReload("draw8");
@@ -392,7 +392,7 @@ CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testMCGR_OldToNew_opacity)
{
// The file contains a shape with solid fill and a radial transparency gradient with start 90%,
// end 0%, border 20% and center at 50%|50%. There is only one draw:opacity element in file.
- loadFromURL(u"MCGR_OldToNew_opacity.odg");
+ loadFromFile(u"MCGR_OldToNew_opacity.odg");
// saveAndReload includes validation and must not fail with the new elements and attributes.
saveAndReload("draw8");
@@ -452,7 +452,7 @@ CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testMCGR_threeStops)
{
// The file contains a shape with square gradient fill from red #ff0000 over teal #0099bb to
// yellow #ffff00, named 'threeStops'. It has 45deg rotation, center 0%|50%, border 10%.
- loadFromURL(u"MCGR_threeStops.fodt");
+ loadFromFile(u"MCGR_threeStops.fodt");
// saveAndReload includes validation and must not fail with the new elements and attributes.
saveAndReload("draw8");
@@ -527,7 +527,7 @@ CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testBorderRestoration)
// exported to ODF with a border of 50%.
// When gradient-stops are integrated in ODF strict, the test needs to be adapted.
- loadFromURL(u"MCGR_Border_restoration.pptx");
+ loadFromFile(u"MCGR_Border_restoration.pptx");
// Backup original ODF default version
const SvtSaveOptions::ODFDefaultVersion nCurrentODFVersion(GetODFDefaultVersion());
@@ -565,7 +565,7 @@ CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testTransparencyBorderRestoration)
// backward compatibility such gradient is exported with a border of 40% in the transparency
// gradient. The color itself is the same for all gradient stops.
// When transparency gradient-stops are integrated in ODF strict, the test needs to be adapted.
- loadFromURL(u"MCGR_TransparencyBorder_restoration.pptx");
+ loadFromFile(u"MCGR_TransparencyBorder_restoration.pptx");
// Backup original ODF default version
const SvtSaveOptions::ODFDefaultVersion nCurrentODFVersion(GetODFDefaultVersion());
@@ -604,7 +604,7 @@ CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testAxialGradientCompatible)
// ODF export writes an axial gradient. with colors A and B.
// This test needs to be adapted when color stops are available in ODF strict and widely
// supported in even older LibreOffice versions.
- loadFromURL(u"tdf155549_MCGR_AxialGradientCompatible.odt");
+ loadFromFile(u"tdf155549_MCGR_AxialGradientCompatible.odt");
//Round-trip through OOXML.
// FixMe tdf#153183. Here "Attribute 'ID' is not allowed to appear in element 'v:rect'".
@@ -636,7 +636,7 @@ CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testAxialTransparencyCompatible)
// axial transparency gradient that is same as in the original document.
// This test needs to be adapted when color stops are available in ODF strict and widely
// supported in even older LibreOffice versions.
- loadFromURL(u"tdf155549_MCGR_AxialTransparencyCompatible.odt");
+ loadFromFile(u"tdf155549_MCGR_AxialTransparencyCompatible.odt");
//Round-trip through OOXML.
// FixMe tdf#153183, and error in charSpace and in CharacterSet
diff --git a/xmloff/qa/unit/text.cxx b/xmloff/qa/unit/text.cxx
index 7462e23f7c39..e6433b2b70f9 100644
--- a/xmloff/qa/unit/text.cxx
+++ b/xmloff/qa/unit/text.cxx
@@ -47,7 +47,7 @@ CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testMailMergeInEditeng)
{
// Without the accompanying fix in place, this test would have failed, as unexpected
// <text:database-display> in editeng text aborted the whole import process.
- loadFromURL(u"mail-merge-editeng.odt");
+ loadFromFile(u"mail-merge-editeng.odt");
}
CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testCommentProperty)
@@ -181,13 +181,13 @@ CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testCommentTableBorder)
{
// Without the accompanying fix in place, this failed to load, as a comment that started in a
// table and ended outside a table aborted the whole importer.
- loadFromURL(u"comment-table-border.fodt");
+ loadFromFile(u"comment-table-border.fodt");
}
CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testParaStyleListLevel)
{
// Given a document with style:list-level="...":
- loadFromURL(u"para-style-list-level.fodt");
+ loadFromFile(u"para-style-list-level.fodt");
// Then make sure we map that to the paragraph style's numbering level:
uno::Reference<style::XStyleFamiliesSupplier> xStyleFamiliesSupplier(mxComponent,
@@ -217,7 +217,7 @@ CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testParaStyleListLevel)
CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testContinueNumberingWord)
{
// Given a document, which is produced by Word and contains text:continue-numbering="true":
- loadFromURL(u"continue-numbering-word.odt");
+ loadFromFile(u"continue-numbering-word.odt");
// Then make sure that the numbering from the 1st para is continued on the 3rd para:
uno::Reference<text::XTextDocument> xTextDocument(mxComponent, uno::UNO_QUERY);
@@ -239,7 +239,7 @@ CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testContinueNumberingWord)
CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testListId)
{
// Given a document with a simple list (no continue-list="..." attribute):
- loadFromURL(u"list-id.fodt");
+ loadFromFile(u"list-id.fodt");
// When storing that document as ODF:
save("writer8");
@@ -255,7 +255,7 @@ CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testListId)
CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testListId2)
{
// tdf#155823 Given a document with a list consisting of items having different list styles:
- loadFromURL(u"differentListStylesInOneList.fodt");
+ loadFromFile(u"differentListStylesInOneList.fodt");
auto xTextDocument(mxComponent.queryThrow<css::text::XTextDocument>());
auto xParaEnumAccess(xTextDocument->getText().queryThrow<css::container::XEnumerationAccess>());
@@ -361,7 +361,7 @@ CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testListIdOnRestart)
// and text:continue-list, but uses text:continue-numbering, and is imported correctly.
// Given a document with a list with a restart after break:
- loadFromURL(u"listRestartAfterBreak.fodt");
+ loadFromFile(u"listRestartAfterBreak.fodt");
auto xTextDocument(mxComponent.queryThrow<css::text::XTextDocument>());
auto xParaEnumAccess(xTextDocument->getText().queryThrow<css::container::XEnumerationAccess>());
@@ -446,7 +446,7 @@ CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testClearingBreakExport)
CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testClearingBreakImport)
{
// Given an ODF document with a clearing break:
- loadFromURL(u"clearing-break.fodt");
+ loadFromFile(u"clearing-break.fodt");
// Then make sure that the "clear" attribute is not lost on import:
uno::Reference<text::XTextDocument> xTextDocument(mxComponent, uno::UNO_QUERY);
@@ -573,7 +573,7 @@ CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testContentControlExport)
CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testContentControlImport)
{
// Given an ODF document with a content control:
- loadFromURL(u"content-control.fodt");
+ loadFromFile(u"content-control.fodt");
// Then make sure that the content control is not lost on import:
uno::Reference<text::XTextDocument> xTextDocument(mxComponent, uno::UNO_QUERY);
@@ -635,7 +635,7 @@ CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testCheckboxContentControlExport)
CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testCheckboxContentControlImport)
{
// Given an ODF document with a checkbox content control:
- loadFromURL(u"content-control-checkbox.fodt");
+ loadFromFile(u"content-control-checkbox.fodt");
// Then make sure that the content control is not lost on import:
uno::Reference<text::XTextDocument> xTextDocument(mxComponent, uno::UNO_QUERY);
@@ -733,7 +733,7 @@ CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testDropdownContentControlExport)
CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testDropdownContentControlImport)
{
// Given an ODF document with a dropdown content control:
- loadFromURL(u"content-control-dropdown.fodt");
+ loadFromFile(u"content-control-dropdown.fodt");
// Then make sure that the content control is not lost on import:
uno::Reference<text::XTextDocument> xTextDocument(mxComponent, uno::UNO_QUERY);
@@ -809,7 +809,7 @@ CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testPictureContentControlExport)
CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testPictureContentControlImport)
{
// Given an ODF document with a picture content control:
- loadFromURL(u"content-control-picture.fodt");
+ loadFromFile(u"content-control-picture.fodt");
// Then make sure that the content control is not lost on import:
uno::Reference<text::XTextDocument> xTextDocument(mxComponent, uno::UNO_QUERY);
@@ -871,7 +871,7 @@ CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testDateContentControlExport)
CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testDateContentControlImport)
{
// Given an ODF document with a date content control:
- loadFromURL(u"content-control-date.fodt");
+ loadFromFile(u"content-control-date.fodt");
// Then make sure that the content control is not lost on import:
uno::Reference<text::XTextDocument> xTextDocument(mxComponent, uno::UNO_QUERY);
@@ -935,7 +935,7 @@ CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testPlainTextContentControlExport)
CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testPlainTextContentControlImport)
{
// Given an ODF document with a plain-text content control:
- loadFromURL(u"content-control-plain-text.fodt");
+ loadFromFile(u"content-control-plain-text.fodt");
// Then make sure that the content control is not lost on import:
uno::Reference<text::XTextDocument> xTextDocument(mxComponent, uno::UNO_QUERY);
@@ -1027,7 +1027,7 @@ CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testAliasContentControlExport)
CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testComboBoxContentControlImport)
{
// Given an ODF document with a plain-text content control:
- loadFromURL(u"content-control-combo-box.fodt");
+ loadFromFile(u"content-control-combo-box.fodt");
// Then make sure that the content control is not lost on import:
uno::Reference<text::XTextDocument> xTextDocument(mxComponent, uno::UNO_QUERY);
@@ -1054,7 +1054,7 @@ CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testComboBoxContentControlImport)
CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testAliasContentControlImport)
{
// Given an ODF document with a content control and its alias/tag:
- loadFromURL(u"content-control-alias.fodt");
+ loadFromFile(u"content-control-alias.fodt");
// Then make sure that the content control is not lost on import:
uno::Reference<text::XTextDocument> xTextDocument(mxComponent, uno::UNO_QUERY);
@@ -1096,7 +1096,7 @@ CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testDropdownContentControlAutostyleExport)
{
// Given a document with a dropdown content control, and formatting that forms an autostyle in
// ODT:
- loadFromURL(u"content-control-dropdown.docx");
+ loadFromFile(u"content-control-dropdown.docx");
// When saving that document to ODT, then make sure no assertion failure happens:
uno::Reference<frame::XStorable> xStorable(mxComponent, uno::UNO_QUERY);
@@ -1111,7 +1111,7 @@ CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testDropdownContentControlAutostyleExport)
CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testScaleWidthRedline)
{
// Given a document with change tracking enabled, one image is part of a delete redline:
- loadFromURL(u"scale-width-redline.fodt");
+ loadFromFile(u"scale-width-redline.fodt");
dispatchCommand(mxComponent, ".uno:TrackChanges", {});
dispatchCommand(mxComponent, ".uno:GoToEndOfLine", {});
dispatchCommand(mxComponent, ".uno:EndOfParaSel", {});
@@ -1209,7 +1209,7 @@ CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testFloatingTableImport)
{
// Given a document with a floating table (loext:may-break-between-pages="true"), when importing
// that document:
- loadFromURL(u"floattable.fodt");
+ loadFromFile(u"floattable.fodt");
// Then make sure that the matching text frame property is set:
uno::Reference<text::XTextFramesSupplier> xTextFramesSupplier(mxComponent, uno::UNO_QUERY);
@@ -1224,7 +1224,7 @@ CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testFloatingTableImport)
CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testParagraphScopedTabDistance)
{
// Given a document with paragraph scoped default tab stop distance (loext:tab-stop-distance="0.5cm")
- loadFromURL(u"paragraph-tab-stop-distance.fodp");
+ loadFromFile(u"paragraph-tab-stop-distance.fodp");
uno::Reference<drawing::XDrawPagesSupplier> xDoc(mxComponent, uno::UNO_QUERY);
uno::Reference<drawing::XDrawPage> xPage(xDoc->getDrawPages()->getByIndex(0),
@@ -1266,7 +1266,7 @@ CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testNestedSpans)
// Given a document with a first paragraph that has a nested span, the outer span setting the
// boldness:
// When importing that document:
- loadFromURL(u"nested-spans.odt");
+ loadFromFile(u"nested-spans.odt");
// Then make sure the text portion is bold, not normal:
uno::Reference<text::XTextDocument> xTextDocument(mxComponent, uno::UNO_QUERY);
diff --git a/xmloff/qa/unit/text/txtprmap.cxx b/xmloff/qa/unit/text/txtprmap.cxx
index f40b04b3fdd1..08c91c4c1a78 100644
--- a/xmloff/qa/unit/text/txtprmap.cxx
+++ b/xmloff/qa/unit/text/txtprmap.cxx
@@ -72,7 +72,7 @@ CPPUNIT_TEST_FIXTURE(Test, testFloatingTableWrapTextAtFlyStartImport)
// Given a document with a floating table + wrap on all pages
// (loext:may-break-between-pages="true" and loext:wrap-text-at-frame-start="true"), when
// importing that document:
- loadFromURL(u"floattable-wrap-all-pages2.fodt");
+ loadFromFile(u"floattable-wrap-all-pages2.fodt");
// Then make sure that the matching text frame property is set:
uno::Reference<text::XTextFramesSupplier> xTextFramesSupplier(mxComponent, uno::UNO_QUERY);