[prev in list] [next in list] [prev in thread] [next in thread]
List: kdevelop-devel
Subject: Re: How to write UI tests (for sublime/ and shell/)
From: Alexander Dymo <dymo () ukrpost ! ua>
Date: 2008-05-05 17:33:11
Message-ID: 200805052033.11631.dymo () ukrpost ! ua
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic