##// END OF EJS Templates
Fixing CM3 style related issues....
Fixing CM3 style related issues. CM3 introduced a number of changes to how various paddings are set. Because of how we change the line-height we had to set these back to the CM2 values. What a pain!

File last commit:

r8053:58574fbf
r10423:f2bc0656
Show More
testEmptySequenceKeyword.js
16 lines | 639 B | application/javascript | JavascriptLexer
$(document).ready(function(){
module("testEmptySequenceKeyword");
test("testEmptySequenceKeyword", function() {
expect(1);
var input = '"foo" instance of empty-sequence()';
var expected = '<span class="cm-string">"foo"</span> <span class="cm-keyword">instance</span> <span class="cm-keyword">of</span> <span class="cm-keyword">empty-sequence</span>()';
$("#sandbox").html('<textarea id="editor">' + input + '</textarea>');
var editor = CodeMirror.fromTextArea($("#editor")[0]);
var result = $(".CodeMirror-lines div div pre")[0].innerHTML;
equal(result, expected);
$("#editor").html("");
});
});