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 google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment