<div dir="ltr">Hello Regina,<br><br><div class="gmail_quote"><div dir="ltr">On Mon, Oct 8, 2018 at 7:54 PM Regina Henschel <<a href="mailto:rb.henschel@t-online.de">rb.henschel@t-online.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
does no one has an idea? I have put the problem as patch to Gerrit <br>
<a href="https://gerrit.libreoffice.org/61545" rel="noreferrer" target="_blank">https://gerrit.libreoffice.org/61545</a>. Perhaps my problem is easier <br>
understandable then.<br>
<br>
Problem: If I use the "Load"-method, I get the document loaded, but only <br>
the center pane has the correct size. All other window sizes have <br>
suspicious values. Especially the LayerTabBar has width 0, and therefore <br>
a click on it is not possible. But that would be needed for the unit test.<br></blockquote><div><br></div><div>Many of the unit tests actually don't include any parts of the UI. So, they are usually useless for testing that anything in the UI actually works. For some tests you can work around it by hooking into the corresponding shell but you will need to inspect the code and the setup of the test (e.g. your test does not link against libsdui) to check if that is possible. I think not many people can easily help you there for impress and draw code.</div><div><br></div><div>Regards,</div><div>Markus<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
How to get the correct window sizes?<br>
<br>
Kind regards<br>
Regina<br>
<br>
<br>
Regina Henschel schrieb am 04-Oct-18 um 14:42:<br>
> Hi all,<br>
><br>
> I'm still working on a unit test for bug tdf#119956. My current state<br>
> is, that the odg test document really opens in Draw. [On master it opens<br>
> in Impress.] But the layer tab bar has width 0. So simulating a click on<br>
> the layer tab bar is not possible, which is needed in case of bug<br>
> tdf#119956.<br>
><br>
> Which layers are shown in the layer tab bar is calculated in<br>
> DrawViewShell::ResetActualLayer() in sd/source/ui/view/drviews1.cxx and<br>
> the actual width is calculated in TabBar::ImplFormat() in<br>
> svtools/source/control/tabbar.cxx. Please correct me, if I'm wrong about<br>
> this.<br>
><br>
> So my questions are:<br>
><br>
> What makes the method SdMiscTest::Load from misc-tests.cxx in sd/qa/unit<br>
> different from regular opening the file from a running LibreOffice via<br>
> click on Open button of the start center?<br>
><br>
> How can I open the test file in a unit test the same way as a regular<br>
> Open does?<br>
><br>
> Or what do I need to add/change in the SdMiscTest::Load method to get<br>
> the layer tab bar in the correct width?<br>
><br>
> Any ideas or tips?<br>
><br>
> Kind regards<br>
> Regina<br>
> _______________________________________________<br>
> LibreOffice mailing list<br>
> <a href="mailto:LibreOffice@lists.freedesktop.org" target="_blank">LibreOffice@lists.freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/libreoffice" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/libreoffice</a><br>
<br>
_______________________________________________<br>
LibreOffice mailing list<br>
<a href="mailto:LibreOffice@lists.freedesktop.org" target="_blank">LibreOffice@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/libreoffice" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/libreoffice</a><br>
</blockquote></div></div>