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/-/ey8I3upIl9kJ.
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.

Reply via email to