Yeah, this issue
<http://code.google.com/p/google-web-toolkit/issues/detail?id=7743&sort=-id&colspec=ID%20Type%20Status%20Owner%20Milestone%20Summary%20Stars>is
actually a big deal for us, we are a canvas-heavy app and its killing our
unit testing from the get go.
19 Ekim 2012 Cuma 16:10:55 UTC+3 tarihinde Emre Esirik yazdı:
>
> public class CanvasTest extends GWTTestCase {
> public String getModuleName() {
> return "com.MyModule"
> }
> public void testCanvas() {
> Canvas c = Canvas.createIfSupported();
> c.setCoordinateSpaceWidth(199);
> c.setCoordinateSpaceHeight(199);
>
> int value = c.getCoordinateSpaceWidth(); //FAILED
> }
> }
>
> gwt unit test failed while getting canvas coordinatespacewidth also,
>
> public class AsyncRequestTest extends GWTTestCase {
> public String getModuleName() {
> return "com.MyModule"
> }
> public void testAsyncRequest() {
> request("http://localhost:8080/myservice"); //FAILIED
> }
> public static native String request(String url) {
> var AJAX = new $wnd.XMLHttpRequest();
> AJAX.open('GET',url,false);
> AJAX.send(null);
> return AJAX.responseText;
>
> }
> }
> this code is work at project but it is failed at gwt unit test.I guess
> this fails is because of gwt unit tests uses firefox 3
> . Application is drawing canvas application and this errors stops me :(
>
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/0FKKVLdINpsJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.