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 95491 - Gravy: hang if making more than one add/dndPalette call from "Composite" palette
Summary: Gravy: hang if making more than one add/dndPalette call from "Composite" palette
Status: RESOLVED WONTFIX
Alias: None
Product: qa
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: _ krystyna
URL:
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2007-02-13 23:55 UTC by bugbridge
Modified: 2009-07-07 14:12 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bugbridge 2007-02-13 23:55:11 UTC
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!
Comment 1 Winston Prakash 2007-04-28 01:34:21 UTC
This is not a component issue. Test issue. Assigning to mikhailmatveev. Please
assign to correct person
Comment 2 _ alexpetrov 2007-05-21 13:25:03 UTC
Mikhail Matveev (mikhailmatveev) assigned this issue to me (Alex Petrov,
pal127). I think it makes sense to assign the issue to Krys.
Comment 3 Marian Mirilovic 2009-07-07 14:12:59 UTC
too old -> wontfix