Here is my code, might help:

        testBase: function()
        {
            document.body.innerHTML = '<div id="inlineDiv" style="width:
100%; height: 100%;" ></div>';

            var inline = new
qx.ui.root.Inline(document.getElementById("inlineDiv"), false, true);
            inline.setLayout(new qx.ui.layout.HBox());

            var button = new qx.ui.form.Button("Hello World");
            inline.add(button);
            var popup = new qx.ui.popup.Popup();
            popup.placeToWidget(button, true);
        }

Very simple code, but the TestRunner chokes on this

On Thu, Oct 8, 2009 at 6:37 PM, Jean-Noël Rivasseau <[email protected]>wrote:

> Hi,
>
> After some weeks of investifgation our TDD is coming along fine. We have
> refactored the app a bit, and are now beginning to truely enjoy the benefits
> of TDD. The TestRunner app is fantastic (congrats to the guys in the Qx team
> that wrote it!), I now use it all the time instead of starting the app and
> this is *so much* faster. The only problem I had with TestRunner is strange
> FF caching problems. I had to install CacheToggle plugin to turn off the
> cache entirely when testing the Qx app.
>
> I now have a problem though: I want to test some parts of my code that
> create a popup and call placeToWidget() on it. This causes the following
> error in the test runner:
>
> editor.test.ColorButton:testColorButton Error message is:
> TypeError: bounds is null
> Stack trace:
> qx.ui.core.MPlacement:177
> qx.ui.core.MPlacement:271
> editor.components.ColorPopup:54
> editor.components.ColorButton:38
> editor.test.ColorButton:27
> qx.dev.unit.TestFunction:119
> qx.dev.unit.TestResult:151
> qx.dev.unit.TestFunction:114
> qx.dev.unit.TestLoader:204
>
> which is problematic... Can anyone help me with this (it works fine in non
> test mode, and I of course dont want to change the code just to test it)?
> Shall I file a bug about this? Not sure exactly what is happening, I guess
> some initialization is not done on the test runner or something like that.
>
> I can post my code.
>
> Jean-Noel
>



-- 
Jean-Noël Rivasseau
Directeur

Kameleoon - morph the web
http://www.kameleoon.com/
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to