This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 22953

Summary: New implementation causes errors
Product: qa Reporter: Jiri Skrivanek <jskrivanek>
Component: CodeAssignee: issues@qa <issues>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P1    
Version: 3.x   
Hardware: Sun   
OS: Solaris   
Issue Type: DEFECT Exception Reporter:

Description Jiri Skrivanek 2002-04-30 09:02:03 UTC
There is a problem with new drivers
implementation.

a) Robot mode is used without request

Try following code:

        JFrameOperator frame = new
JFrameOperator("Explorer [");
        JTreeOperator tree = new
JTreeOperator(frame);
        
        tree.clickMouse();
       
JPopupMenuOperator.callPopup(tree.getSource());

tree.clickMouse() uses MouseEventDriver but
callPopup() uses MouseRobotDriver. Above call
popup construction is used in
JTreeOperator.callPopupOnPaths().

2) NPE from visualizer.scroll()

Try following code:

        ComponentOperator co = new
ComponentOperator(tree.getSource());
        MouseVisualizer mv = new
MouseVisualizer();
        mv.scroll(true);
        mv.makeVisible(co);

NullPointerException is thrown from scroll()
method.
Comment 1 Alexandre Iline 2002-05-02 10:32:37 UTC
Fixed in 2.0.alpha
Comment 2 Jiri Skrivanek 2002-05-02 12:38:29 UTC
Second test case (scroll) still failing.
Comment 3 Jiri Skrivanek 2002-05-13 11:57:13 UTC
Fixed by Alexandre Iline already.
Comment 4 Jiri Skrivanek 2002-05-13 11:58:46 UTC
Verified & Closed.