Community
Participate
Working Groups
Since the I-20050405 build, the macro scrips for Plugin Junit tests have started to fail to execute. They can't go beyond the first page of the New Plugin Project wizard for example.
So far I narrowed the problem down to 'double-select' command. Double-click stopped executing in scripts for some reason. Investigating why. Since it does not work, the wizard does not switch to the next page, and the expected page id fails. In order to make the debugging and error reporting easier, I have improved the error message (it now reports the expected and actual page id), and the script line number (I got it for free by copying XMLDefaultHandler from PDE - yey!). There is nothing sweeter than stealing somebody else's fine work :-).
Our dear friend Veronika is on the case. She will try to find out what happened between M6 and I20050405 to make the following code fail silently i.e. do not produce the desired effect: public boolean playback(Display display, Composite parent, IProgressMonitor monitor) throws CoreException { CommandTarget target = MacroUtil.locateCommandTarget(parent, getWidgetId(), getStartLine()); if (target==null) return false; target.setFocus(); Widget widget = target.getWidget(); Event e = new Event(); e.type = SWT.DefaultSelection; e.widget = widget; e.display = display; widget.notifyListeners(SWT.DefaultSelection, e); return true; }
Created attachment 19672 [details] Fix for double-click problem
after applying the patch, the same 20 tests are still failing.
That is strange - they pass on my machine.
I have regained my commit rights and checked in all the changes. I checked out PDE plug-ins from HEAD and rerun the tests on 0405 build - they all pass. Please check out org.eclipse.pde.ui.tests from HEAD and try again.
fixed.