added test for inherited indentation

This commit is contained in:
Vladimir Matveev 2014-12-10 22:01:34 -08:00
parent 59a31acca1
commit 6b438c22fd

View File

@ -10,14 +10,35 @@
/////*3*/? c
/////*4*/: d;
////var x =
/////*5*/a
/////*6*/? function(){
/////*7*/var z = 1
/////*8*/}
/////*9*/: function(){
/////*10*/var z = 2
/////*11*/}
function verifyLine(marker: string, content: string) {
goTo.marker(marker);
verify.currentLineContentIs(content);
}
format.document();
verifyLine("0", " a === b");
verifyLine("1", " ? c");
verifyLine("2", " : d;");
verifyLine("3", " ? c");
verifyLine("4", " : d;");
verifyLine("0", " a === b");
verifyLine("1", " ? c");
verifyLine("2", " : d;");
verifyLine("3", " ? c");
verifyLine("4", " : d;");
verifyLine("5", " a");
verifyLine("6", " ? function() {");
verifyLine("7", " var z = 1");
verifyLine("8", " }");
verifyLine("9", " : function() {");
verifyLine("10", " var z = 2");
verifyLine("11", " }");