From 95537b4f4f7f1c1fe34345ee38c5dcf791ee9ca9 Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Wed, 14 Dec 2011 16:50:04 +0100 Subject: [PATCH] cleanups --- lib/ace/commands/command_manager_test.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/lib/ace/commands/command_manager_test.js b/lib/ace/commands/command_manager_test.js index 9ecafcc0..1609ea9a 100644 --- a/lib/ace/commands/command_manager_test.js +++ b/lib/ace/commands/command_manager_test.js @@ -56,7 +56,7 @@ module.exports = { }, called: false, exec: function(editor) { this.called = true; } - } + }; this.cm = new CommandManager("mac", [this.command]); }, @@ -113,7 +113,7 @@ module.exports = { }, called: false, exec: function(editor) { this.called = true; } - } + }; this.cm.addCommand(command); this.cm.exec("gotoline"); @@ -127,16 +127,16 @@ module.exports = { var called = ""; this.cm.addCommands({ togglerecording: function(editor) { - editor.cm.toggleRecording() + editor.cm.toggleRecording(); }, replay: function(editor) { - editor.cm.replay() + editor.cm.replay(); }, cm1: function(editor, arg) { - called += "1" + (arg || "") + called += "1" + (arg || ""); }, cm2: function(editor) { - called += "2" + called += "2"; } }); @@ -158,17 +158,17 @@ module.exports = { var called = ""; this.cm.addCommands({ cm1: function(editor, arg) { - called += "1" + (arg || "") + called += "1" + (arg || ""); }, cm2: function(editor) { - called += "2" + called += "2"; } }); this.cm.bindKeys({ "Ctrl-L|Command-C": "cm1", - "Ctrl-R": "cm2", - }) + "Ctrl-R": "cm2" + }); var command = this.cm.findKeyCommand(keys.KEY_MODS.command, "C"); assert.equal(command, "cm1"); @@ -178,7 +178,7 @@ module.exports = { this.cm.bindKeys({ "Ctrl-R": null - }) + }); var command = this.cm.findKeyCommand(keys.KEY_MODS.ctrl, "R"); assert.equal(command, null); @@ -188,5 +188,5 @@ module.exports = { }); if (typeof module !== "undefined" && module === require.main) { - require("asyncjs").test.testcase(module.exports).exec() + require("asyncjs").test.testcase(module.exports).exec(); } \ No newline at end of file