I have a native method which calls a JavaScript function from a JS file in
my war directory (war/appJS.js). Here is the code for the method:
public static native String hello()
/*-{
return appJS._escape("hello world")
}-*/;
I have tried using ScriptInjector.FromUrl with the url being
GWT.getModuleBaseURL() + "appJS.js" and it doesn't work. I have even moved
the appJS.js into the module package and it still doesn't work.
Is it possible to use a JavaScript file from the war directory in a
GWTTestCase? Any help is very much appreciated. Thanks!
-Brandon
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.