Kaydet (Commit) a7a47272 authored tarafından Chris Sherlock's avatar Chris Sherlock Kaydeden (comit) Caolán McNamara

TestOutputDevice can't set meOutDevType

One of the StarMath tests was very broken - the issue is in formula tester. It
basically sets up its own derived TestOutputDevice. Because it doesn't set
meOutDevType (and can't as that's a private member function - I note this whole
design is *broken* but I digress) a few things can't get access to a
SalGraphics instance.  This is fixed by removing the class and changing it to a
VirtualDevice - the test runs under headless mode anyway

Change-Id: I3d6eba793386e6db3f053aa4e6aab9a4d1c63fc3
Reviewed-on: https://gerrit.libreoffice.org/8395Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst eaa876e4
......@@ -21,14 +21,6 @@
SV_DECL_REF(SmDocShell)
SV_IMPL_REF(SmDocShell)
class TestOutputDevice : public OutputDevice
{
public:
TestOutputDevice()
{
}
};
using namespace ::com::sun::star;
namespace {
......@@ -510,7 +502,7 @@ void Test::testBinomInBinHor()
pTree->Prepare(xDocShRef->GetFormat(), *xDocShRef);
SmCursor aCursor(pTree, xDocShRef);
TestOutputDevice aOutputDevice;
VirtualDevice aOutputDevice;
// move forward (more than) enough places to be at the end
int i;
......@@ -538,7 +530,7 @@ void Test::testBinVerInUnary()
pTree->Prepare(xDocShRef->GetFormat(), *xDocShRef);
SmCursor aCursor(pTree, xDocShRef);
TestOutputDevice aOutputDevice;
VirtualDevice aOutputDevice;
// move forward (more than) enough places to be at the end
int i;
......@@ -567,7 +559,7 @@ void Test::testBinHorInSubSup()
pTree->Prepare(xDocShRef->GetFormat(), *xDocShRef);
SmCursor aCursor(pTree, xDocShRef);
TestOutputDevice aOutputDevice;
VirtualDevice aOutputDevice;
// Insert an RSup expression with a BinHor for the exponent
aCursor.InsertText("a");
......@@ -595,7 +587,7 @@ void Test::testUnaryInMixedNumberAsNumerator()
pTree->Prepare(xDocShRef->GetFormat(), *xDocShRef);
SmCursor aCursor(pTree, xDocShRef);
TestOutputDevice aOutputDevice;
VirtualDevice aOutputDevice;
// move forward (more than) enough places to be at the end
for (size_t i = 0; i < 3; ++i)
......
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