mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Issue #287 : Rename addShortcut/removeShortcut to less ambiguous register/unregister
This commit is contained in:
@@ -17,7 +17,7 @@ describe("SelectionManager suite", function() {
|
||||
* @Mock
|
||||
*/
|
||||
pskl.app.shortcutService = {
|
||||
addShortcut : function () {}
|
||||
registerShortcut : function () {}
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -40,7 +40,7 @@ describe("SelectionManager suite", function() {
|
||||
selectionManager.init();
|
||||
|
||||
selection = new pskl.selection.BaseSelection();
|
||||
|
||||
|
||||
selection.pixels = [];
|
||||
});
|
||||
|
||||
@@ -161,7 +161,7 @@ describe("SelectionManager suite", function() {
|
||||
[R, B, T],
|
||||
[T, R, B]
|
||||
]);
|
||||
|
||||
|
||||
selection.move(-1, 0);
|
||||
|
||||
console.log('[SelectionManager] ... paste out of bounds');
|
||||
|
@@ -28,7 +28,7 @@ describe("History Service suite", function() {
|
||||
}
|
||||
};
|
||||
var mockShortcutService = {
|
||||
addShortcut : function () {}
|
||||
registerShortcut : function () {}
|
||||
};
|
||||
return new pskl.service.HistoryService(mockPiskelController, mockShortcutService);
|
||||
};
|
||||
|
@@ -16,7 +16,7 @@ describe("Storage Service test suite", function() {
|
||||
save : function () {}
|
||||
};
|
||||
pskl.app.shortcutService = {
|
||||
addShortcut : function () {}
|
||||
registerShortcut : function () {}
|
||||
};
|
||||
|
||||
storageService = new pskl.service.storage.StorageService();
|
||||
|
Reference in New Issue
Block a user