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:
|
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;
|
||||||
|
|
|
@ -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");
|
||||||
|
|
Loading…
Reference in a new issue