path: root/test/source/screenshot_test.cxx
AgeCommit message (Collapse)AuthorFilesLines
2016-08-18screenshots: clang plugin & tabpage usage fixesArmin Le Grand1-2/+2
Adapted clang compiler results, made TabDialog implementaions of ScreenShot API work with real UXMLDescription names, including a solution for using multiple tabPages with the same *.ui file Change-Id: I56df878b3db3bcc18fa2b4713b7ad72d42e8eb30
2016-08-18screenshots: unify dumping of dialog test batch fileArmin Le Grand1-0/+53
Change-Id: Ia1e79216d9537c65f8b7362778a2e1ad3ec6c2c2
2016-08-18screenshots: fix fallback cases for sd and scArmin Le Grand1-8/+16
Change-Id: I27dab5552e3924df30c8b09c46994b2d645bcde9
2016-08-18screenshots: fallback screenshot to ui filesArmin Le Grand1-2/+26
Besides the already existing methods to dump adapted dialogs and create and dump fallback dialogs I added a possibility to process a given input file which may contain a list of UXMLDescription files (*.ui files), one per line. This file is processed (empty lines and comment lines using '#' allowed) and for each descriptor first tries to find a known, adapted dialog. If found it gets used, else fallback is tried. Added ui-definition files for sd and sc which contain all ui-files from these dialogs. Adapted the test base class to hold the needed functionality. Change-Id: I1d4c64af8cd5d9c89a53b193951c3e49669f5852
2016-08-18screenshots: Use UI string and fallback for UI-String onlyArmin Le Grand1-43/+111
Two changes in this commit: The Dialogs to be dumped are identified in their test files using their UXMLDescription to allow later to 'find' the known dialogs and use the specialized construction for these. Also added a fallback to construct a vcl Dialog based on only the UXMLDescription and the VclBuilder. This will be constructed without any active initialization/layouting, so should only be used for unknown Dialogs. Also added a dumpDialogToPath version to the tooling that can work directly with a vcl Dialog instead of a VclAbstractDialog. Change-Id: I90abb6f59c2fcc5d534907ae7e4b9a15edc2d694
2016-08-18screenshots: move shared code to separate classKatarina Behrens1-0/+102
Change-Id: I1760de221bc53d345c2bbfb4fe878c120073ea45