Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/ToolbarPreferences.java
r8422 r8423 1014 1014 } 1015 1015 } 1016 regactions.put(toolbar, action); 1016 if (toolbar != null) { 1017 regactions.put(toolbar, action); 1018 } 1017 1019 return action; 1018 1020 } -
trunk/test/unit/org/openstreetmap/josm/gui/preferences/ToolbarPreferencesTest.java
r7937 r8423 14 14 import org.junit.Test; 15 15 import org.openstreetmap.josm.actions.ActionParameter; 16 import org.openstreetmap.josm.actions.ActionParameter.StringActionParameter; 16 17 import org.openstreetmap.josm.actions.ParameterizedAction; 17 import org.openstreetmap.josm.actions.ActionParameter.StringActionParameter;18 18 import org.openstreetmap.josm.gui.preferences.ToolbarPreferences.ActionDefinition; 19 19 import org.openstreetmap.josm.gui.preferences.ToolbarPreferences.ActionParser; … … 61 61 checkAction(parser.loadAction("action(param1=value1,"), "param1", "value1"); 62 62 checkAction(parser.loadAction("action(param1=value1"), "param1", "value1"); 63 checkAction(parser.loadAction("action(param1=") , "param1", "");64 checkAction(parser.loadAction("action(param1") , "param1", "");63 checkAction(parser.loadAction("action(param1=")); 64 checkAction(parser.loadAction("action(param1")); 65 65 checkAction(parser.loadAction("action(")); 66 66 checkAction(parser.loadAction("action"));
Note:
See TracChangeset
for help on using the changeset viewer.