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

Bug 386815

Summary: [Text] JavaScript test failes in Chrome 21
Product: [RT] RAP Reporter: Tim Buschtoens <tbuschto>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: tbuschto
Version: 2.0   
Target Milestone: 2.0 M1   
Hardware: All   
OS: All   
Whiteboard:

Description Tim Buschtoens CLA 2012-08-08 06:00:39 EDT
As of Chrome 21 (windows 7), TextTest.js#testSetSelection fails. Same it true for a related test in ClientScripting. The feature does seem to work in the controls demo though, so it might be a problem with the test setup or fixture.
Comment 1 Ivan Furnadjiev CLA 2012-08-09 09:28:02 EDT
I found that setting the width/height on the text and parent (shell) in TextTest#createText methods make the tests green again. Here is the snippet:
var createText = function( noflush, arg ) {
  shell.setWidth( 500 );
  shell.setHeight( 500 );
  text = new org.eclipse.rwt.widgets.Text( arg ? arg : false );
  text.setWidth( 100 );
  text.setHeight( 40 );
  ObjectManager.add( "w3", text, null );
  text.setParent( shell );
  if( noflush !== true ) {
    TestUtil.flush();
    TestUtil.forceTimerOnce(); // apply first input fix in IE
    text.focus();
    TestUtil.clearRequestLog();
  }
};
Comment 2 Tim Buschtoens CLA 2012-08-10 05:51:43 EDT
Fixed with commit d1a5c71ec2a9daa34d32afaf84e60c87715f79e9.

This gives a min width of 2px to input elements. It fixes the tests and seems to prevent in a failing selection.