diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2024-01-03 11:49:02 +0600 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2024-01-03 07:51:28 +0100 |
commit | a01a642ebbdb8c16f1b54b4634c277b9f665192f (patch) | |
tree | e0c598848fbb375ddbe9e1cf4db42df1e27746a9 /sc/qa/unit/anchor.cxx | |
parent | 8ecd20b447ab5e58fa77c19fce09c0f239d1fafc (diff) |
UnoApiTest::loadFromURL -> UnoApiTest::loadFromFile
The old name was misleading (it doesn't take an URL, but a filename);
also, now it's easier to grep for it - doesn't get mixed with
vcl::graphic::loadFromURL.
Change-Id: Ib88d2194200a6a54d2326971e0306ba39f0c7025
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161578
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sc/qa/unit/anchor.cxx')
-rw-r--r-- | sc/qa/unit/anchor.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sc/qa/unit/anchor.cxx b/sc/qa/unit/anchor.cxx index 789b6d777181..18daecd23aa1 100644 --- a/sc/qa/unit/anchor.cxx +++ b/sc/qa/unit/anchor.cxx @@ -65,7 +65,7 @@ ScAnchorTest::ScAnchorTest() void ScAnchorTest::testUndoAnchor() { - loadFromURL(u"document_with_linked_graphic.ods"); + loadFromFile(u"document_with_linked_graphic.ods"); // Get the document model SfxObjectShell* pFoundShell = SfxObjectShell::GetShellFromComponent(mxComponent); @@ -191,7 +191,7 @@ void ScAnchorTest::testTdf76183() void ScAnchorTest::testODFAnchorTypes() { - loadFromURL(u"3AnchorTypes.ods"); + loadFromFile(u"3AnchorTypes.ods"); // Get the document model SfxObjectShell* pFoundShell = SfxObjectShell::GetShellFromComponent(mxComponent); @@ -230,7 +230,7 @@ void ScAnchorTest::testODFAnchorTypes() /// Test that copying a column with an image anchored to it also copies the image void ScAnchorTest::testCopyColumnWithImages() { - loadFromURL(u"3AnchorTypes.ods"); + loadFromFile(u"3AnchorTypes.ods"); // Get the document model SfxObjectShell* pFoundShell = SfxObjectShell::GetShellFromComponent(mxComponent); @@ -296,7 +296,7 @@ void ScAnchorTest::testCopyColumnWithImages() void ScAnchorTest::testCutWithImages() { - loadFromURL(u"3AnchorTypes.ods"); + loadFromFile(u"3AnchorTypes.ods"); // open the document with graphic included // Get the document model @@ -350,7 +350,7 @@ void ScAnchorTest::testCutWithImages() void ScAnchorTest::testTdf121963() { - loadFromURL(u"tdf121963.ods"); + loadFromFile(u"tdf121963.ods"); // Without the accompanying fix in place, this test would have never returned due to an infinite // invalidation loop, where ScGridWindow::Paint() invalidated itself. @@ -359,7 +359,7 @@ void ScAnchorTest::testTdf121963() void ScAnchorTest::testTdf129552() { - loadFromURL(u"tdf129552.fods"); + loadFromFile(u"tdf129552.fods"); // Without the accompanying fix in place, this test would have never returned due to an infinite // invalidation loop, where ScGridWindow::Paint() invalidated itself. @@ -368,7 +368,7 @@ void ScAnchorTest::testTdf129552() void ScAnchorTest::testTdf130556() { - loadFromURL(u"tdf130556.ods"); + loadFromFile(u"tdf130556.ods"); // Without the accompanying fix in place, this test would have never returned due to an infinite // invalidation loop, where ScGridWindow::Paint() invalidated itself. @@ -377,7 +377,7 @@ void ScAnchorTest::testTdf130556() void ScAnchorTest::testTdf134161() { - loadFromURL(u"tdf134161.ods"); + loadFromFile(u"tdf134161.ods"); // Without the accompanying fix in place, this test would have never returned due to an infinite // invalidation loop |