add command_manager_test to browser tests, and fix failing test

This commit is contained in:
nightwing 2011-11-21 12:46:15 +04:00
commit c00341b444
2 changed files with 2 additions and 1 deletions

View file

@ -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 || {});

View file

@ -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"),