Community
Participate
Working Groups
Using installable build of 20111031_0901 This is blocking issue for services testing in deployed mode. use kan-cvs-save /cvsroot/rbd check out project egl.rest from cvs moldule org.eclipse.edt.tests.services right click on egl.rest, Generate EGL Test Driver => Javascript Asynchronize you will see another project egl.rest.eunit.javascriptasync under eunitgen.libraries.async, open TestPrimitives_rui.egl in EGL RUI editor, go to the preview pane (wait a little), you will see some text in the browser saying running tests.... deploy this project (egl.rest.eunit.javascriptasync) to a target project called egl.rest.tgt run TestPrimitives_rui.html on server, I get blank page in IE, FF and chrome. After Joe looked into it, he found the javascript runitme code is doing: egl.loadScript( "org.eclipse.edt.eunit.runtime","ConstantsLib" ); That function is only defined in egl_development.js which I don't think is included in the deployed version. Note: I have some .egl file in org.eclipse.edt.eunit.runtime folder as part of the "system eglar", so I generated these .egl into .js, put the ones have debug information into the javascript runtime. Let me know if there is something I need to fix to get this going. Thanks
Created attachment 206245 [details] test projects
Hi Jing, There are two solutions for this issue: 1) Remove the below lines in /org.eclipse.edt.runtime.javascript/runtime/org/eclipse/edt/eunit/runtime/TestListMgr.js egl.loadScript( "org.eclipse.edt.eunit.runtime","ConstantsLib" ); egl.loadScript( "org.eclipse.edt.eunit.runtime","LogResult" ); egl.loadScript( "org.eclipse.edt.eunit.runtime","AssertionFailedException" ); egl.loadScript( "org.eclipse.edt.eunit.runtime","MultiStatus" ); 2) Put a empty method named egl.loadScript into egl.js. I prefer the first one, because TestListMgr.js is only copied once if there is no change, right?
The third solution is that excluding the all parts in package "org.eclipse.edt.eunit.runtime" to generate "egl.loadScript". I've checked in a fix with the third solution. You need regenerated TestListMgr.egl using next build and copy it to javascript runtime. Thanks.
solution 3 is not acceptable as it is hard coding to check the package name of eunit.runtime pacakges, this may not work for me, since under this packages, I have 4 files inside the "system eglar", AND another 5 files inside user's workspace. We should NOT distinguish system defined part vs. user defined part, they should be treated equally. anyway, please back out solution3, check in solution 2 thx
Revert the change and fixed with solution 2 now. Thanks.
verified with 201111110901's build