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 28800 - Test Utilities.actionsToPopup
Summary: Test Utilities.actionsToPopup
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Actions (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks: 27868
  Show dependency tree
 
Reported: 2002-11-15 17:51 UTC by Jaroslav Tulach
Modified: 2008-12-22 21:33 UTC (History)
3 users (show)

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2002-11-15 17:51:33 UTC
Need a test that the popup menu is created correctly.

1. actions are really clonned in the provided
context (Lookup)
2. those that implement Provider.Popup are
correctly called
3. the rest has an item that correctly delegates
to isEnabled state
4. separators are placed correctly
5. two separators are joined
6. separators at begining and end are skipped
Comment 1 Jaroslav Tulach 2002-11-15 17:54:45 UTC
For actionsToPopup (Component) one need to test that ActionMap of all
components up to Lookup.Provider one are available with correctly
merged content.
Comment 2 Jaroslav Tulach 2002-11-15 18:08:19 UTC
subtask of issue 27868
Comment 3 Jaroslav Tulach 2002-12-03 14:02:57 UTC
UtilitiesCompositeActionMap.java new revision: 1.1.2.2
UtilitiesActionsTest.java new revision: 1.1.2.1
Comment 4 vbrabant 2002-12-12 15:11:49 UTC
Dear,
it seems that this issue has been fixed in the nb341 
release.

Please update then the Target Milestone and patch in the 
trunk if not done.
Comment 5 vbrabant 2002-12-12 15:13:49 UTC
add maxym in cc
Comment 6 Jaroslav Tulach 2002-12-12 15:36:54 UTC
Who fixed this in 3.4.1 release? This is an API change and as such
should either be in 3.4.0 or wait for next release.

Definitively I have not put it into 3.4.1 branch.
Comment 7 vbrabant 2002-12-12 18:09:53 UTC
if you look at the changelog of 03/12/2002 [
http://www.netbeans.org/download/release341/night/build200212032341/NetBeansIDE-release341-200212032341-Changelog.html
]
you can read the following:

    
2002-12-03 14:02 jtulach openide
    Tests of Utilities.actionsToPopup, tasks 28800 and 28799 openide/:
src/org/openide/util/UtilitiesCompositeActionMap.java (1.1.2.2),
test/unit/src/org/openide/util/UtilitiesActionsTest.java (1.1.2.1)     

And it seems that it's yourself ;-) who commit it.

Am i wrong  ?

Comment 8 _ mihmax 2002-12-13 10:02:15 UTC
Vincent, there's some problem with the Changelog.

Rudolf, do you know why
http://www.netbeans.org/download/release341/night/build200212032341/NetBeansIDE-release341-200212032341-Changelog.html
contains the info about this issue?
Comment 9 Jaroslav Tulach 2002-12-13 10:17:22 UTC
The changelog seems to be broken. I did just one commit to release341
branch and that is long time ago.