use of org.eclipse.jface.text.IRegion in project eclipse.platform.text by eclipse.
the class ProjectionDocumentTest method test29_32.
@Test
public void test29_32() {
// test computation of unprojected master regions
// spanning multiple fragments
// starting right of fragment
// ending left of fragment
IRegion[] expected = { new Region(50, 10), new Region(80, 20), new Region(120, 10) };
assertUnprojectedMasterRegions(expected, 50, 80);
}
use of org.eclipse.jface.text.IRegion in project eclipse.platform.text by eclipse.
the class ProjectionDocumentTest method test29_24.
@Test
public void test29_24() {
// test computation of unprojected master regions
// spanning multiple fragments
// starting inside fragment
// ending inside fragment
IRegion[] expected = { new Region(80, 20) };
assertUnprojectedMasterRegions(expected, 70, 40);
}
use of org.eclipse.jface.text.IRegion in project eclipse.platform.text by eclipse.
the class ProjectionDocumentTest method test29_4.
@Test
public void test29_4() {
// test computation of unprojected master regions
// spanning no fragment
// right of fragment
IRegion[] expected = { new Region(85, 10) };
assertUnprojectedMasterRegions(expected, 85, 10);
}
use of org.eclipse.jface.text.IRegion in project eclipse.platform.text by eclipse.
the class ProjectionDocumentTest method test29_16.
@Test
public void test29_16() {
// test computation of unprojected master regions
// spanning multiple fragments
// starting left of fragment
// ending right of fragment
IRegion[] expected = { new Region(50, 10), new Region(80, 20), new Region(120, 10) };
assertUnprojectedMasterRegions(expected, 50, 80);
}
use of org.eclipse.jface.text.IRegion in project eclipse.platform.text by eclipse.
the class ProjectionDocumentTest method test29_31.
@Test
public void test29_31() {
// test computation of unprojected master regions
// spanning multiple fragments
// starting touching right fragment border
// ending right of fragment
IRegion[] expected = { new Region(40, 20), new Region(80, 20), new Region(120, 10) };
assertUnprojectedMasterRegions(expected, 40, 90);
}
Aggregations