add command_manager_test to browser tests, and fix failing test
This commit is contained in:
parent
262df95a3d
commit
c00341b444
2 changed files with 2 additions and 1 deletions
|
|
@ -100,7 +100,7 @@ var CommandManager = function(platform, commands) {
|
|||
if (!command)
|
||||
return false;
|
||||
|
||||
if (editor.$readOnly && !command.readOnly)
|
||||
if (editor && editor.$readOnly && !command.readOnly)
|
||||
return false;
|
||||
|
||||
command.exec(editor, args || {});
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ var log = document.getElementById("log")
|
|||
|
||||
var tests = [
|
||||
require("ace/anchor_test"),
|
||||
require("ace/commands/command_manager_test"),
|
||||
require("ace/document_test"),
|
||||
require("ace/edit_session_test"),
|
||||
require("ace/editor_change_document_test"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue