<div dir="ltr"><div dir="ltr">Hi Regina,<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Nov 9, 2021 at 11:28 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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Tomaž,<br>
<br>
your dump works in principle. I can read the xml-file and build the <br>
assertXPath.<br>
<br>
For example, I am able to write a test about the material properties <br>
'specular' and 'specularIntensity' of an object. Such is needed to <br>
verify correct values in case of material 'Metal'.<br>
<br>
But while creating a test about material 'Matte', I have seen this problem:<br>
The method createNewSdrLightingAttribute() in <br>
/core/svx/source/sdr/primitive2d/sdrattributecreator.cxx collects the <br>
lights. But it does not record, which light it is. So in my case the <br>
dump writes e.g.<br>
<br>
<lights><br>
      <light color="#aaaaaa" directionVectorX="0" directionVectorY="0" <br>
specular="1"/><br>
      <light color="#383838" directionVectorX="0" directionVectorY="0" <br>
specular="0"/><br>
      <light color="#464646" directionVectorX="0" directionVectorY="0" <br>
specular="0"/><br>
<lights><br>
<br>
I cannot see which lights they are.<br>
The old wrong solution has used light 1, light 2 and light 3.<br>
The new working solution uses light 2, light 3 and light 4.<br>
<br>
I would need to test, that light 1 (which is always a spot light) is not <br>
used. Using light 1 had produced the error, that the appearance was not <br>
'Matte'.<br>
<br>
I could test, that the third color has the correct value, but that would <br>
only test indirectly, what the fix does. Shall I do it nevertheless?<br></blockquote><div><br></div><div>Can you describe in the test what is missing and can't be tested and once you push it to gerrit I'll look how this can be solved. <br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Kind regards,<br>
Regina<br>
<br></blockquote><div>Regards, Tomaž <br></div></div></div>