mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
Let another test pass by swapping the default order of italic/bold for '''''.
Minor test output cosmetics.
This commit is contained in:
parent
e0fca805a6
commit
f758894de7
|
@ -240,11 +240,11 @@
|
|||
case 5:
|
||||
// order does not matter here, will be fixed
|
||||
// by HTML parser backend
|
||||
bolds.push(i + inserted);
|
||||
out.push({type: 'QUOTE', value: "'''"});
|
||||
inserted++;
|
||||
italics.push(i + inserted);
|
||||
out.push({type: 'QUOTE', value: "''"});
|
||||
inserted++;
|
||||
bolds.push(i + inserted);
|
||||
out.push({type: 'QUOTE', value: "'''"});
|
||||
break;
|
||||
default: // longer than 5, only use the last 5 ticks
|
||||
token.value = "'''''";
|
||||
|
@ -255,11 +255,11 @@
|
|||
out.push({type: 'TEXT', value: newvalue});
|
||||
inserted++;
|
||||
}
|
||||
bolds.push(i + inserted);
|
||||
out.push({type: 'QUOTE', value: "'''"});
|
||||
inserted++;
|
||||
italics.push(i + inserted);
|
||||
out.push({type: 'QUOTE', value: "''"});
|
||||
inserted++;
|
||||
bolds.push(i + inserted);
|
||||
out.push({type: 'QUOTE', value: "'''"});
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -197,7 +197,7 @@ function processTest(item) {
|
|||
|
||||
function printTitle() {
|
||||
console.log('=====================================================');
|
||||
console.log(item.title);
|
||||
console.log('FAILED: ' + item.title);
|
||||
console.log(item.comments.join('\n'));
|
||||
console.log("INPUT:");
|
||||
console.log(item.input + "\n");
|
||||
|
|
Loading…
Reference in a new issue