Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 298836 - [DnD] update 1.3M4 and UITests Error
Summary: [DnD] update 1.3M4 and UITests Error
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: 1.3   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 1.3 M5   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-05 06:59 EST by Maziar Khodaei CLA
Modified: 2010-01-13 06:17 EST (History)
1 user (show)

See Also:


Attachments
fix (857 bytes, patch)
2010-01-11 06:26 EST, Tim Buschtoens CLA
ruediger.herrmann: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Maziar Khodaei CLA 2010-01-05 06:59:18 EST
I updated yesterday my framework up to the version 1.3M4 from dec 18.
I got than following error:
"Could not evaluate javascript response:

TypeError: widget is undefined

var req= org .eclipse.swt. request ............."


I found out, that when I set the UI test attributte "Dorg.eclipse.rwt.enableUITests=true" then the error is fire, when the attribute is false, it work perfect.

I test it with RAP 1.3M3, that works without errors, as well UI Test is true or false. Only by 1.3M4 come to this error.
Comment 1 Ivan Furnadjiev CLA 2010-01-05 07:11:59 EST
I can reproduce it with the Workbench Demo and -Dorg.eclipse.rwt.enableUITests=true. A short debug shows that the problematic script is:
wm.setHtmlId( wm.findWidgetById( "w146" ), "w146" );
where the widget with Id w146 is a DropTarget.
Comment 2 Tim Buschtoens CLA 2010-01-11 06:26:22 EST
Created attachment 155734 [details]
fix

This should make setHtmlId bullet-proof.
Comment 3 Rüdiger Herrmann CLA 2010-01-13 06:17:35 EST
Applied patch to CVS HEAD