Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 359534

Summary: Uncaught SyntaxError: Unexpected identifier--The WriteResultLib.js contains error in Eunit framework
Product: z_Archived Reporter: pf yu <pfyu>
Component: EDTAssignee: Project Inbox <edt.javascriptgen-inbox>
Status: CLOSED FIXED QA Contact:
Severity: critical    
Priority: P3 CC: greer, hjiyong, jqian, pfyu, svihovec
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description pf yu CLA 2011-09-30 05:01:35 EDT
Build Identifier: 201109292101

The WriteResultLib.js contains error in Eunit framework
The generated JavaScript code for the EGL function getTimeStamp() is incorrect.
at line 151:
this.currentTime = egl.eglx.rbd.StrLib['$inst'].formatTimeStamp_2_J'yyyyMMddHHmmssffffff'_S(eze$Temp10, eze$Temp11);

Reproducible: Always

Steps to Reproduce:
1.Create an EDT basic project "abc", with JavaScript Generator turning on
2.Create a Library "test"
3.Create an Eunit test function in the library:
    function functionName(){@Test}
        assertTrue1(true);
    end
4.Generate the JavaScript test driver and run the corresponding RUI handler
5.You will run into the issue in the browser
Comment 1 Scott Greer CLA 2011-09-30 13:26:46 EDT
EUnit appears to have been changed recently, unmasking this bug in which the new code supporting overloaded functions failed to handle functions with certain types of parameters.

Fixed.
Comment 2 pf yu CLA 2011-10-12 05:12:02 EDT
Verified in build 201110110900