From kdevelop-devel Mon May 05 17:33:11 2008 From: Alexander Dymo Date: Mon, 05 May 2008 17:33:11 +0000 To: kdevelop-devel Subject: Re: How to write UI tests (for sublime/ and shell/) Message-Id: <200805052033.11631.dymo () ukrpost ! ua> X-MARC-Message: https://marc.info/?l=kdevelop-devel&m=121000831632426 On Saturday 03 May 2008 08:34:01 Vladimir Prus wrote: > Most of my recent work involving making sure that the size of main window, > the set of available views, and so on, is persisted between KDevelop > invocations. Can you write an example of tests that starts KDevelop several > times, checking position of things? We probably can call Core::initialize() and then delete that core and create new one. Also we might want to call saveArea() and loadArea() manually. > Next thing I'm planning is to change placement of tool buttons. Testing > that is tricky a bit -- in particular, it would require that the test know > the width of toolview, which is not presently exposed via public (or even > private) methods. I can think of one way to find the size. You can find widgets by name or by class name using QObject::findChildren(), cast to what we need and ask for size. _______________________________________________ KDevelop-devel mailing list KDevelop-devel@kdevelop.org https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel