google-code-export / gwt-test-utils

Automatically exported from code.google.com/p/gwt-test-utils
1 stars 0 forks source link

Can't test UiBinder and CssResource #48

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, I'm trying to test classes that use a CssResource, without success. 

I have a ui.xml and defined styles in it; and there is an associated java class 
in which I use a CssResource instance for change some styles dinamically. I 
can't test this because gwt-test-utils seems to fail when trying to bind some 
resources. 

Here is some code for better understanding:

interface Style extends CssResource {
        String invisibleBodyContainer();

        String headerContainerStateImageOpened();

        String headerContainerStateImageClosed();
    }

    @UiField
    protected Style style;

When I test, the style variable isn't filled, but other resources, like a 
DivElement are created appropriately.

What version of the product are you using? On what operating system?
I'm using gwt-test-utils-0.30-snapshot, gwt-2.3.0, Eclipse Helios and Ubuntu 
10.10.

Original issue reported on code.google.com by jaime.sc...@gmail.com on 3 Jun 2011 at 4:33

GoogleCodeExporter commented 9 years ago
I missed something when I had implemended this. 

I'll correct this as soon as possible, thank you for this report !

Original comment by gael.laz...@gmail.com on 3 Jun 2011 at 4:38

GoogleCodeExporter commented 9 years ago

Original comment by gael.laz...@gmail.com on 5 Jun 2011 at 6:19

GoogleCodeExporter commented 9 years ago
I've just deploy a new SNAPSHOT with a fix for this. Could you please give it a 
try and tell me if it's working now ? Thanks !

Original comment by gael.laz...@gmail.com on 7 Jun 2011 at 10:58

GoogleCodeExporter commented 9 years ago

Original comment by gael.laz...@gmail.com on 9 Jun 2011 at 3:33