Skip to content
Snippets Groups Projects
Commit 4f6c8af2 authored by Marijn Haverbeke's avatar Marijn Haverbeke
Browse files

[gfm mode] Fix broken test setup

parent 8332d69c
No related branches found
No related tags found
No related merge requests found
......@@ -2,9 +2,10 @@
// Distributed under an MIT license: http://codemirror.net/LICENSE
(function() {
var mode = CodeMirror.getMode({tabSize: 4}, "gfm");
var config = {tabSize: 4, indentUnit: 2}
var mode = CodeMirror.getMode(config, "gfm");
function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }
var modeHighlightFormatting = CodeMirror.getMode({tabSize: 4}, {name: "gfm", highlightFormatting: true});
var modeHighlightFormatting = CodeMirror.getMode(config, {name: "gfm", highlightFormatting: true});
function FT(name) { test.mode(name, modeHighlightFormatting, Array.prototype.slice.call(arguments, 1)); }
FT("codeBackticks",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment