Backed out changeset 2566c7e54dcf (bug 993162) for suspecting this caused dt tools bustage on a CLOSED TREE

This commit is contained in:
Carsten "Tomcat" Book 2014-04-16 11:14:09 +02:00
Родитель e6a5e12b4a
Коммит 96b1e266ef
2 изменённых файлов: 11 добавлений и 11 удалений

Просмотреть файл

@ -1283,7 +1283,7 @@ pref("devtools.eyedropper.zoom", 6);
// - keymap: which keymap to use (can be 'default', 'emacs' or 'vim')
// - autoclosebrackets: whether to permit automatic bracket/quote closing.
// - detectindentation: whether to detect the indentation from the file
pref("devtools.editor.tabsize", 2);
pref("devtools.editor.tabsize", 4);
pref("devtools.editor.expandtab", true);
pref("devtools.editor.keymap", "default");
pref("devtools.editor.autoclosebrackets", true);

Просмотреть файл

@ -62,26 +62,26 @@ function test() {
waitForExplicitFinish();
setup((ed, win) => {
is(ed.getOption("indentUnit"), 2,
"2 spaces before code added");
is(ed.getOption("indentUnit"), 4,
"4 spaces before code added");
is(ed.getOption("indentWithTabs"), false,
"spaces is default");
ed.setText(FOUR_SPACES_CODE);
is(ed.getOption("indentUnit"), 4,
"4 spaces detected in 4 space code");
is(ed.getOption("indentWithTabs"), false,
"spaces detected in 4 space code");
ed.setText(TWO_SPACES_CODE);
is(ed.getOption("indentUnit"), 2,
"2 spaces detected in 2 space code");
is(ed.getOption("indentWithTabs"), false,
"spaces detected in 2 space code");
ed.setText(FOUR_SPACES_CODE);
is(ed.getOption("indentUnit"), 4,
"4 spaces detected in 4 space code");
is(ed.getOption("indentWithTabs"), false,
"spaces detected in 4 space code");
ed.setText(TABS_CODE);
is(ed.getOption("indentUnit"), 2,
"2 space indentation unit");
is(ed.getOption("indentUnit"), 4,
"4 space indentation unit");
is(ed.getOption("indentWithTabs"), true,
"tabs detected in majority tabs code");