| Summary: | [Text] JavaScript test failes in Chrome 21 | ||
|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Tim Buschtoens <tbuschto> |
| Component: | RWT | Assignee: | 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
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();
}
};
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. |