Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Replace <marker≥ with <marker> in comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
jodator committed Nov 25, 2019
1 parent 942f0a2 commit b0b5159
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 42 deletions.
12 changes: 6 additions & 6 deletions tests/restrictededitingediting.js
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ describe( 'RestrictedEditingEditing', () => {

const paragraph = model.document.getRoot().getChild( 0 );

// <paragraph>[]foo <markerbar</marker> baz qux</paragraph>
// <paragraph>[]foo <marker>bar</marker> baz qux</paragraph>
model.change( writer => {
writer.addMarker( 'restricted-editing-exception:1', {
range: writer.createRange( writer.createPositionAt( paragraph, 4 ), writer.createPositionAt( paragraph, 7 ) ),
Expand All @@ -462,7 +462,7 @@ describe( 'RestrictedEditingEditing', () => {
} );
} );

// <paragraph>[]foo <markerbar</marker> <markerbaz</marker≥ qux</paragraph>
// <paragraph>[]foo <marker>bar</marker> <marker>baz</marker≥ qux</paragraph>
model.change( writer => {
writer.addMarker( 'restricted-editing-exception:2', {
range: writer.createRange( writer.createPositionAt( paragraph, 8 ), writer.createPositionAt( paragraph, 11 ) ),
Expand All @@ -484,7 +484,7 @@ describe( 'RestrictedEditingEditing', () => {

const paragraph = model.document.getRoot().getChild( 0 );

// <paragraph><markerfoo</marker> qux[]</paragraph>
// <paragraph><marker>foo</marker> qux[]</paragraph>
model.change( writer => {
writer.addMarker( 'restricted-editing-exception:1', {
range: writer.createRange( writer.createPositionAt( paragraph, 0 ), writer.createPositionAt( paragraph, 3 ) ),
Expand All @@ -505,7 +505,7 @@ describe( 'RestrictedEditingEditing', () => {

const paragraph = model.document.getRoot().getChild( 0 );

// <paragraph>foo <markerbar</marker> baz qux[]</paragraph>
// <paragraph>foo <marker>bar</marker> baz qux[]</paragraph>
model.change( writer => {
writer.addMarker( 'restricted-editing-exception:1', {
range: writer.createRange( writer.createPositionAt( paragraph, 4 ), writer.createPositionAt( paragraph, 7 ) ),
Expand All @@ -514,7 +514,7 @@ describe( 'RestrictedEditingEditing', () => {
} );
} );

// <paragraph>foo <markerbar</marker> <markerbaz</marker≥ qux[]</paragraph>
// <paragraph>foo <marker>bar</marker> <marker>baz</marker≥ qux[]</paragraph>
model.change( writer => {
writer.addMarker( 'restricted-editing-exception:2', {
range: writer.createRange( writer.createPositionAt( paragraph, 8 ), writer.createPositionAt( paragraph, 11 ) ),
Expand All @@ -537,7 +537,7 @@ describe( 'RestrictedEditingEditing', () => {

const paragraph = model.document.getRoot().getChild( 0 );

// <paragraph>[]foo <markerqux</marker></paragraph>
// <paragraph>[]foo <marker>qux</marker></paragraph>
model.change( writer => {
writer.addMarker( 'restricted-editing-exception:1', {
range: writer.createRange( writer.createPositionAt( paragraph, 4 ), writer.createPositionAt( paragraph, 7 ) ),
Expand Down
72 changes: 36 additions & 36 deletions tests/restrictededitingnavigationcommand.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe( 'RestrictedEditingNavigationCommand', () => {

const paragraph = model.document.getRoot().getChild( 0 );

// <paragraph>[]foo <markerbar</marker> baz</paragraph>
// <paragraph>[]foo <marker>bar</marker> baz</paragraph>
model.change( writer => {
writer.addMarker( 'restricted-editing-exception:1', {
range: writer.createRange( writer.createPositionAt( paragraph, 4 ), writer.createPositionAt( paragraph, 7 ) ),
Expand All @@ -58,7 +58,7 @@ describe( 'RestrictedEditingNavigationCommand', () => {

const paragraph = model.document.getRoot().getChild( 0 );

// <paragraph>foo <markerbar</marker> baz[]</paragraph>
// <paragraph>foo <marker>bar</marker> baz[]</paragraph>
model.change( writer => {
writer.addMarker( 'restricted-editing-exception:1', {
range: writer.createRange( writer.createPositionAt( paragraph, 4 ), writer.createPositionAt( paragraph, 7 ) ),
Expand All @@ -75,7 +75,7 @@ describe( 'RestrictedEditingNavigationCommand', () => {

const paragraph = model.document.getRoot().getChild( 0 );

// <paragraph>foo []<markerbar</marker> baz</paragraph>
// <paragraph>foo []<marker>bar</marker> baz</paragraph>
model.change( writer => {
writer.addMarker( 'restricted-editing-exception:1', {
range: writer.createRange( writer.createPositionAt( paragraph, 4 ), writer.createPositionAt( paragraph, 7 ) ),
Expand All @@ -92,7 +92,7 @@ describe( 'RestrictedEditingNavigationCommand', () => {

const paragraph = model.document.getRoot().getChild( 0 );

// <paragraph>foo <markerb[]ar</marker> baz</paragraph>
// <paragraph>foo <marker>b[]ar</marker> baz</paragraph>
model.change( writer => {
writer.addMarker( 'restricted-editing-exception:1', {
range: writer.createRange( writer.createPositionAt( paragraph, 4 ), writer.createPositionAt( paragraph, 7 ) ),
Expand All @@ -109,7 +109,7 @@ describe( 'RestrictedEditingNavigationCommand', () => {

const paragraph = model.document.getRoot().getChild( 0 );

// <paragraph>foo <markerbar</marker>[] baz</paragraph>
// <paragraph>foo <marker>bar</marker>[] baz</paragraph>
model.change( writer => {
writer.addMarker( 'restricted-editing-exception:1', {
range: writer.createRange( writer.createPositionAt( paragraph, 4 ), writer.createPositionAt( paragraph, 7 ) ),
Expand All @@ -128,7 +128,7 @@ describe( 'RestrictedEditingNavigationCommand', () => {

const paragraph = model.document.getRoot().getChild( 0 );

// <paragraph>[fo]o <markerbar</marker> baz</paragraph>
// <paragraph>[fo]o <marker>bar</marker> baz</paragraph>
model.change( writer => {
writer.addMarker( 'restricted-editing-exception:1', {
range: writer.createRange( writer.createPositionAt( paragraph, 4 ), writer.createPositionAt( paragraph, 7 ) ),
Expand All @@ -145,7 +145,7 @@ describe( 'RestrictedEditingNavigationCommand', () => {

const paragraph = model.document.getRoot().getChild( 0 );

// <paragraph>[foo <markerba]r</marker> baz</paragraph>
// <paragraph>[foo <marker>ba]r</marker> baz</paragraph>
model.change( writer => {
writer.addMarker( 'restricted-editing-exception:1', {
range: writer.createRange( writer.createPositionAt( paragraph, 4 ), writer.createPositionAt( paragraph, 7 ) ),
Expand All @@ -162,7 +162,7 @@ describe( 'RestrictedEditingNavigationCommand', () => {

const paragraph = model.document.getRoot().getChild( 0 );

// <paragraph>foo <markerba[r</marker> baz]</paragraph>
// <paragraph>foo <marker>ba[r</marker> baz]</paragraph>
model.change( writer => {
writer.addMarker( 'restricted-editing-exception:1', {
range: writer.createRange( writer.createPositionAt( paragraph, 4 ), writer.createPositionAt( paragraph, 7 ) ),
Expand All @@ -183,7 +183,7 @@ describe( 'RestrictedEditingNavigationCommand', () => {

const paragraph = model.document.getRoot().getChild( 0 );

// <paragraph>[]foo <markerbar</marker> baz</paragraph>
// <paragraph>[]foo <marker>bar</marker> baz</paragraph>
model.change( writer => {
writer.addMarker( 'restricted-editing-exception:1', {
range: writer.createRange( writer.createPositionAt( paragraph, 4 ), writer.createPositionAt( paragraph, 7 ) ),
Expand All @@ -192,7 +192,7 @@ describe( 'RestrictedEditingNavigationCommand', () => {
} );
} );

// <paragraph>[]foo <markerbar</marker> <markerbaz</marker</paragraph>
// <paragraph>[]foo <marker>bar</marker> <marker>baz</marker></paragraph>
model.change( writer => {
writer.addMarker( 'restricted-editing-exception:2', {
range: writer.createRange( writer.createPositionAt( paragraph, 8 ), writer.createPositionAt( paragraph, 11 ) ),
Expand All @@ -214,7 +214,7 @@ describe( 'RestrictedEditingNavigationCommand', () => {
const fiirstParagraph = model.document.getRoot().getChild( 0 );
const secondParagraph = model.document.getRoot().getChild( 1 );

// <paragraph><markerfoo</marker>[]</paragraph><paragraph>bar</paragraph>
// <paragraph><marker>foo</marker>[]</paragraph><paragraph>bar</paragraph>
model.change( writer => {
writer.addMarker( 'restricted-editing-exception:1', {
range: writer.createRangeIn( fiirstParagraph ),
Expand All @@ -223,7 +223,7 @@ describe( 'RestrictedEditingNavigationCommand', () => {
} );
} );

// <paragraph><markerfoo</marker>[]</paragraph><paragraph><markerbar</marker></paragraph>
// <paragraph><marker>foo</marker>[]</paragraph><paragraph><marker>bar</marker></paragraph>
model.change( writer => {
writer.addMarker( 'restricted-editing-exception:2', {
range: writer.createRangeIn( secondParagraph ),
Expand All @@ -241,7 +241,7 @@ describe( 'RestrictedEditingNavigationCommand', () => {

const paragraph = model.document.getRoot().getChild( 0 );

// <paragraph>[]foo bar <markerbaz</marker</paragraph>
// <paragraph>[]foo bar <marker>baz</marker></paragraph>
model.change( writer => {
writer.addMarker( 'restricted-editing-exception:2', {
range: writer.createRange( writer.createPositionAt( paragraph, 8 ), writer.createPositionAt( paragraph, 11 ) ),
Expand All @@ -250,7 +250,7 @@ describe( 'RestrictedEditingNavigationCommand', () => {
} );
} );

// <paragraph>[]foo <markerbar</marker> <markerbaz</marker</paragraph>
// <paragraph>[]foo <marker>bar</marker> <marker>baz</marker></paragraph>
model.change( writer => {
writer.addMarker( 'restricted-editing-exception:1', {
range: writer.createRange( writer.createPositionAt( paragraph, 4 ), writer.createPositionAt( paragraph, 7 ) ),
Expand All @@ -273,7 +273,7 @@ describe( 'RestrictedEditingNavigationCommand', () => {

const paragraph = model.document.getRoot().getChild( 0 );

// <paragraph>[foo <markerb]ar</marker> baz</paragraph>
// <paragraph>[foo <marker>b]ar</marker> baz</paragraph>
model.change( writer => {
writer.addMarker( 'restricted-editing-exception:1', {
range: writer.createRange( writer.createPositionAt( paragraph, 4 ), writer.createPositionAt( paragraph, 7 ) ),
Expand All @@ -282,7 +282,7 @@ describe( 'RestrictedEditingNavigationCommand', () => {
} );
} );

// <paragraph>[foo <markerb]ar</marker> <markerbaz</marker</paragraph>
// <paragraph>[foo <marker>b]ar</marker> <marker>baz</marker></paragraph>
model.change( writer => {
writer.addMarker( 'restricted-editing-exception:2', {
range: writer.createRange( writer.createPositionAt( paragraph, 8 ), writer.createPositionAt( paragraph, 11 ) ),
Expand All @@ -303,7 +303,7 @@ describe( 'RestrictedEditingNavigationCommand', () => {

const paragraph = model.document.getRoot().getChild( 0 );

// <paragraph>foo <markerb[ar</marker> b]az</paragraph>
// <paragraph>foo <marker>b[ar</marker> b]az</paragraph>
model.change( writer => {
writer.addMarker( 'restricted-editing-exception:1', {
range: writer.createRange( writer.createPositionAt( paragraph, 4 ), writer.createPositionAt( paragraph, 7 ) ),
Expand All @@ -312,7 +312,7 @@ describe( 'RestrictedEditingNavigationCommand', () => {
} );
} );

// <paragraph>foo <markerb[ar</marker> <markerb]az</marker</paragraph>
// <paragraph>foo <marker>b[ar</marker> <marker>b]az</marker></paragraph>
model.change( writer => {
writer.addMarker( 'restricted-editing-exception:2', {
range: writer.createRange( writer.createPositionAt( paragraph, 8 ), writer.createPositionAt( paragraph, 11 ) ),
Expand All @@ -336,7 +336,7 @@ describe( 'RestrictedEditingNavigationCommand', () => {

const paragraph = model.document.getRoot().getChild( 0 );

// <paragraph>foo <markerbar</marker> baz</paragraph>
// <paragraph>foo <marker>bar</marker> baz</paragraph>
model.change( writer => {
writer.addMarker( 'restricted-editing-exception:1', {
range: writer.createRange( writer.createPositionAt( paragraph, 4 ), writer.createPositionAt( paragraph, 7 ) ),
Expand All @@ -353,7 +353,7 @@ describe( 'RestrictedEditingNavigationCommand', () => {

const paragraph = model.document.getRoot().getChild( 0 );

// <paragraph>[]foo <markerbar</marker> baz</paragraph>
// <paragraph>[]foo <marker>bar</marker> baz</paragraph>
model.change( writer => {
writer.addMarker( 'restricted-editing-exception:1', {
range: writer.createRange( writer.createPositionAt( paragraph, 4 ), writer.createPositionAt( paragraph, 7 ) ),
Expand All @@ -370,7 +370,7 @@ describe( 'RestrictedEditingNavigationCommand', () => {

const paragraph = model.document.getRoot().getChild( 0 );

// <paragraph>foo <markerbar</marker>[] baz</paragraph>
// <paragraph>foo <marker>bar</marker>[] baz</paragraph>
model.change( writer => {
writer.addMarker( 'restricted-editing-exception:1', {
range: writer.createRange( writer.createPositionAt( paragraph, 4 ), writer.createPositionAt( paragraph, 7 ) ),
Expand All @@ -387,7 +387,7 @@ describe( 'RestrictedEditingNavigationCommand', () => {

const paragraph = model.document.getRoot().getChild( 0 );

// <paragraph>foo <markerb[]ar</marker> baz</paragraph>
// <paragraph>foo <marker>b[]ar</marker> baz</paragraph>
model.change( writer => {
writer.addMarker( 'restricted-editing-exception:1', {
range: writer.createRange( writer.createPositionAt( paragraph, 4 ), writer.createPositionAt( paragraph, 7 ) ),
Expand All @@ -404,7 +404,7 @@ describe( 'RestrictedEditingNavigationCommand', () => {

const paragraph = model.document.getRoot().getChild( 0 );

// <paragraph>foo []<markerbar</marker> baz</paragraph>
// <paragraph>foo []<marker>bar</marker> baz</paragraph>
model.change( writer => {
writer.addMarker( 'restricted-editing-exception:1', {
range: writer.createRange( writer.createPositionAt( paragraph, 4 ), writer.createPositionAt( paragraph, 7 ) ),
Expand All @@ -423,7 +423,7 @@ describe( 'RestrictedEditingNavigationCommand', () => {

const paragraph = model.document.getRoot().getChild( 0 );

// <paragraph>[fo]o <markerbar</marker> b[az]</paragraph>
// <paragraph>[fo]o <marker>bar</marker> b[az]</paragraph>
model.change( writer => {
writer.addMarker( 'restricted-editing-exception:1', {
range: writer.createRange( writer.createPositionAt( paragraph, 4 ), writer.createPositionAt( paragraph, 7 ) ),
Expand All @@ -440,7 +440,7 @@ describe( 'RestrictedEditingNavigationCommand', () => {

const paragraph = model.document.getRoot().getChild( 0 );

// <paragraph>foo <markerb[ar</marker> baz]</paragraph>
// <paragraph>foo <marker>b[ar</marker> baz]</paragraph>
model.change( writer => {
writer.addMarker( 'restricted-editing-exception:1', {
range: writer.createRange( writer.createPositionAt( paragraph, 4 ), writer.createPositionAt( paragraph, 7 ) ),
Expand All @@ -457,7 +457,7 @@ describe( 'RestrictedEditingNavigationCommand', () => {

const paragraph = model.document.getRoot().getChild( 0 );

// <paragraph>[foo <markerb]ar</marker> baz</paragraph>
// <paragraph>[foo <marker>b]ar</marker> baz</paragraph>
model.change( writer => {
writer.addMarker( 'restricted-editing-exception:1', {
range: writer.createRange( writer.createPositionAt( paragraph, 4 ), writer.createPositionAt( paragraph, 7 ) ),
Expand All @@ -478,7 +478,7 @@ describe( 'RestrictedEditingNavigationCommand', () => {

const paragraph = model.document.getRoot().getChild( 0 );

// <paragraph>foo <markerbar</marker> baz[]</paragraph>
// <paragraph>foo <marker>bar</marker> baz[]</paragraph>
model.change( writer => {
writer.addMarker( 'restricted-editing-exception:1', {
range: writer.createRange( writer.createPositionAt( paragraph, 4 ), writer.createPositionAt( paragraph, 7 ) ),
Expand All @@ -487,7 +487,7 @@ describe( 'RestrictedEditingNavigationCommand', () => {
} );
} );

// <paragraph>foo <markerbar</marker> <markerbaz</marker[]</paragraph>
// <paragraph>foo <marker>bar</marker> <marker>baz</marker>[]</paragraph>
model.change( writer => {
writer.addMarker( 'restricted-editing-exception:2', {
range: writer.createRange( writer.createPositionAt( paragraph, 8 ), writer.createPositionAt( paragraph, 11 ) ),
Expand All @@ -506,7 +506,7 @@ describe( 'RestrictedEditingNavigationCommand', () => {
const fiirstParagraph = model.document.getRoot().getChild( 0 );
const secondParagraph = model.document.getRoot().getChild( 1 );

// <paragraph><markerfoo</marker></paragraph><paragraph>[]bar</paragraph>
// <paragraph><marker>foo</marker></paragraph><paragraph>[]bar</paragraph>
model.change( writer => {
writer.addMarker( 'restricted-editing-exception:1', {
range: writer.createRangeIn( fiirstParagraph ),
Expand All @@ -515,7 +515,7 @@ describe( 'RestrictedEditingNavigationCommand', () => {
} );
} );

// <paragraph><markerfoo</marker></paragraph><paragraph><marker[]bar</marker></paragraph>
// <paragraph><marker>foo</marker></paragraph><paragraph><marker>[]bar</marker></paragraph>
model.change( writer => {
writer.addMarker( 'restricted-editing-exception:2', {
range: writer.createRangeIn( secondParagraph ),
Expand All @@ -533,7 +533,7 @@ describe( 'RestrictedEditingNavigationCommand', () => {

const paragraph = model.document.getRoot().getChild( 0 );

// <paragraph>foo <markerbar</marker> baz qux[]</paragraph>
// <paragraph>foo <marker>bar</marker> baz qux[]</paragraph>
model.change( writer => {
writer.addMarker( 'restricted-editing-exception:1', {
range: writer.createRange( writer.createPositionAt( paragraph, 4 ), writer.createPositionAt( paragraph, 7 ) ),
Expand All @@ -542,7 +542,7 @@ describe( 'RestrictedEditingNavigationCommand', () => {
} );
} );

// <paragraph>foo <markerbar</marker> <markerbaz</marker qux[]</paragraph>
// <paragraph>foo <marker>bar</marker> <marker>baz</marker> qux[]</paragraph>
model.change( writer => {
writer.addMarker( 'restricted-editing-exception:2', {
range: writer.createRange( writer.createPositionAt( paragraph, 8 ), writer.createPositionAt( paragraph, 11 ) ),
Expand All @@ -563,7 +563,7 @@ describe( 'RestrictedEditingNavigationCommand', () => {

const paragraph = model.document.getRoot().getChild( 0 );

// <paragraph>foo bar <markerbaz</marker qux[]</paragraph>
// <paragraph>foo bar <marker>baz</marker> qux[]</paragraph>
model.change( writer => {
writer.addMarker( 'restricted-editing-exception:2', {
range: writer.createRange( writer.createPositionAt( paragraph, 8 ), writer.createPositionAt( paragraph, 11 ) ),
Expand All @@ -572,7 +572,7 @@ describe( 'RestrictedEditingNavigationCommand', () => {
} );
} );

// <paragraph>foo <markerbar</marker> <markerbaz</marker qux[]</paragraph>
// <paragraph>foo <marker>bar</marker> <marker>baz</marker> qux[]</paragraph>
model.change( writer => {
writer.addMarker( 'restricted-editing-exception:1', {
range: writer.createRange( writer.createPositionAt( paragraph, 4 ), writer.createPositionAt( paragraph, 7 ) ),
Expand All @@ -595,7 +595,7 @@ describe( 'RestrictedEditingNavigationCommand', () => {

const paragraph = model.document.getRoot().getChild( 0 );

// <paragraph>foo <markerbar</marker> b[az]</paragraph>
// <paragraph>foo <marker>bar</marker> b[az]</paragraph>
model.change( writer => {
writer.addMarker( 'restricted-editing-exception:1', {
range: writer.createRange( writer.createPositionAt( paragraph, 4 ), writer.createPositionAt( paragraph, 7 ) ),
Expand All @@ -604,7 +604,7 @@ describe( 'RestrictedEditingNavigationCommand', () => {
} );
} );

// <paragraph>foo <markerbar</marker> <markerb[az</marker]</paragraph>
// <paragraph>foo <marker>bar</marker> <marker>b[az</marker>]</paragraph>
model.change( writer => {
writer.addMarker( 'restricted-editing-exception:2', {
range: writer.createRange( writer.createPositionAt( paragraph, 8 ), writer.createPositionAt( paragraph, 11 ) ),
Expand Down

0 comments on commit b0b5159

Please sign in to comment.