gwt - GWTTestcase accessing javascript object defined in an external javascript file fails -
I have defined a GWT module in which the external javascript file is included using the tag. I've written a GWTTestCase that gives the name of the modules described above. When my test case reaches a JavaScript object, I see the following exception
For this reason: com.google.gwt.core.client.JavaScriptException: (null): null
How to fix any thoughts?
Do I believe that the scripts contained in the GVT module definition file will be available when executing GWTs?
I have decided it myself. I obviously, when accessing such objects, The wnd variable should be referenced using.
Example: To access it from the test.js object test defined GWT, use $ wnd.test
Hope this answer saves someone else. time.
Comments
Post a Comment