| Summary: | [Compatibility] WST XML UI test suite hangs on a confirmation dialog | ||
|---|---|---|---|
| Product: | [WebTools] WTP Source Editing | Reporter: | Remy Suen <remy.suen> |
| Component: | wst.xml | Assignee: | Nick Sandonato <nsand.dev> |
| Status: | VERIFIED FIXED | QA Contact: | Nitin Dahyabhai <thatnitind> |
| Severity: | blocker | ||
| Priority: | P3 | CC: | daniel_megert, nsand.dev |
| Version: | 3.3 | ||
| Target Milestone: | 3.3.1 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 334303 | ||
|
Description
Remy Suen
The editors are closed by invoking the StructuredTextEditor's close(boolean) method. The close is done asynchronously which explains why the editor is still lingering around when we're farther in the test suite. It seems that in 3.x the activation event may be suppressed if the active control is not visible. > At the moment I don't believe that particular test to be the problem.
Does the test pass on 3.x? To me it looks like different resources are created and/or deleted.
Another reason could be the ordering of the test(method)s. The order is not guaranteed by JUnit - especially - it is not guaranteed to be the same as seen in the source or class file.
(In reply to comment #3) Oops, only now read the other two comments. One interesting thing is that the test project is deleted during the tear down process. So even if the close requests were dispatched asynchronously, why didn't the editors get closed when their input file's parent project was deleted? (In reply to comment #5) > So even if the close requests were dispatched asynchronously, why > didn't the editors get closed when their input file's parent project was > deleted? The close request caused by the deletion is also asynchronous. Well, that explains that. The event deferral code was added to fix bug 168524. Adding the same code we introduced in bug 168524 doesn't really work right because the isVisible() check on the control always returns 'true'. This seems to be because we never call setVisible(false) on a control while this seemed to be a common pattern in 3.x. I'm not quite sure what should be done here yet but I feel like SSE should change their code to just close the editors immediately instead of doing it asynchronously. That the dialog is shown is the correct behavior, hence in real life everything is fine. I suggest to simply let the test wait with the deletion until the editor has been closed. Changes to immediately close the editor have been released. The test runs to completion now. Thank you for your time, Nick. |