Let another test pass by swapping the default order of italic/bold for '''''.

Minor test output cosmetics.
This commit is contained in:
Gabriel Wicke 2011-11-30 13:54:57 +00:00
parent e0fca805a6
commit f758894de7
2 changed files with 7 additions and 7 deletions

View file

@ -240,11 +240,11 @@
case 5: case 5:
// order does not matter here, will be fixed // order does not matter here, will be fixed
// by HTML parser backend // by HTML parser backend
bolds.push(i + inserted);
out.push({type: 'QUOTE', value: "'''"});
inserted++;
italics.push(i + inserted); italics.push(i + inserted);
out.push({type: 'QUOTE', value: "''"}); out.push({type: 'QUOTE', value: "''"});
inserted++;
bolds.push(i + inserted);
out.push({type: 'QUOTE', value: "'''"});
break; break;
default: // longer than 5, only use the last 5 ticks default: // longer than 5, only use the last 5 ticks
token.value = "'''''"; token.value = "'''''";
@ -255,11 +255,11 @@
out.push({type: 'TEXT', value: newvalue}); out.push({type: 'TEXT', value: newvalue});
inserted++; inserted++;
} }
bolds.push(i + inserted);
out.push({type: 'QUOTE', value: "'''"});
inserted++;
italics.push(i + inserted); italics.push(i + inserted);
out.push({type: 'QUOTE', value: "''"}); out.push({type: 'QUOTE', value: "''"});
inserted++;
bolds.push(i + inserted);
out.push({type: 'QUOTE', value: "'''"});
break; break;
} }
break; break;

View file

@ -197,7 +197,7 @@ function processTest(item) {
function printTitle() { function printTitle() {
console.log('====================================================='); console.log('=====================================================');
console.log(item.title); console.log('FAILED: ' + item.title);
console.log(item.comments.join('\n')); console.log(item.comments.join('\n'));
console.log("INPUT:"); console.log("INPUT:");
console.log(item.input + "\n"); console.log(item.input + "\n");