Issue #287 : Rename addShortcut/removeShortcut to less ambiguous register/unregister

This commit is contained in:
jdescottes
2015-10-10 00:13:07 +02:00
parent 107751b7eb
commit c11e0d5d8d
16 changed files with 42 additions and 42 deletions

View File

@@ -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');

View File

@@ -28,7 +28,7 @@ describe("History Service suite", function() {
}
};
var mockShortcutService = {
addShortcut : function () {}
registerShortcut : function () {}
};
return new pskl.service.HistoryService(mockPiskelController, mockShortcutService);
};

View File

@@ -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();