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.
Original status: 1-Dispatched; Suggested Status: NEW Original submitter: krystyna Description: Where palette is defined palette = new PaletteContainerOperator("Composite"); try, in one test, to drop two Alert components: palette.dndPaletteComponent("Alert",designer,dropPoint1); designer.clickMouse(10,10,1); palette.dndPaletteComponent("Alert", designer, dropPoint2); >The first component is dropped ok, but Gravy hangs on second dnd call, and test fails. From the log, it looks like the coordinates from palette are off: ======================================================================== . . . ideTestRunner] +++ coordinates of component in Palette Panel = [51, 760] [ideTestRunner] Delay scale() = 1.0 [ideTestRunner] Sleep to 1 seconds [ideTestRunner] Delay scale() = 1.0 [ideTestRunner] Sleep to 1 seconds [ideTestRunner] +++ Component in Palette Panel should be visible and selected [ideTestRunner] +++ Left-top position in Palette Panel = java.awt.Point[x=51,y=494] [ideTestRunner] PaletteItemDataObject: ClipBoardCopy: Transferable: xxx@xxxx [ideTestRunner] Flavors: [java.awt.datatransfer.DataFlavor[mimetype=application/x-java-openide-nodednd;representationclass=org.openide.nodes.Node], java.awt.datatransfer.DataFlavor[mimetype=application/x-java-openide-dataobjectdnd;representationclass=org.openide.loaders.DataObject]] [ideTestRunner] PaletteItemDataObject: Drag: Transferable Type: xxx@xxxx [ideTestRunner] Flavors: [java.awt.datatransfer.DataFlavor[mimetype=application/x-java-openide-nodednd;representationclass=org.openide.nodes.Node], java.awt.datatransfer.DataFlavor[mimetype=application/x-java-openide-dataobjectdnd;representationclass=org.openide.loaders.DataObject]] [ideTestRunner] data xxx@xxxx [ideTestRunner] display item=null [ideTestRunner] Delay scale() = 1.0 [ideTestRunner] Sleep to 3 seconds [ideTestRunner] +++ Component should be put from Palette on Designer Pane [ideTestRunner] Delay scale() = 1.0 [ideTestRunner] Sleep to 1 seconds [ideTestRunner] Delay scale() = 1.0 [ideTestRunner] Sleep to 1 seconds [ideTestRunner] +++ coordinates of component in Palette Panel = [51, 266] [ideTestRunner] Delay scale() = 1.0 [ideTestRunner] Sleep to 1 seconds [ideTestRunner] Delay scale() = 1.0 [ideTestRunner] Sleep to 1 seconds [ideTestRunner] +++ Component in Palette Panel should be visible and selected [ideTestRunner] +++ Left-top position in Palette Panel = java.awt.Point[x=0,y=266] . . . Description (Entry 2): Execute attached test. Workaround: The only workaround is to just have one test per file and not use suite.addTest if any other tests call any addComponent or dndPaletteComponent method more than once from Composite section. This is very limiting!
This is not a component issue. Test issue. Assigning to mikhailmatveev. Please assign to correct person
Mikhail Matveev (mikhailmatveev) assigned this issue to me (Alex Petrov, pal127). I think it makes sense to assign the issue to Krys.
too old -> wontfix