Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 359534 - Uncaught SyntaxError: Unexpected identifier--The WriteResultLib.js contains error in Eunit framework
Summary: Uncaught SyntaxError: Unexpected identifier--The WriteResultLib.js contains e...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-30 05:01 EDT by pf yu CLA
Modified: 2017-02-23 14:19 EST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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