@@ -0,0 +1,1639 @@
+package org.eclipse.xtext.parser;%0A%0Aimport org.eclipse.xtext.parsetree.CompositeNode;%0Aimport org.eclipse.xtext.parsetree.NodeUtil;%0Aimport org.eclipse.xtext.parsetree.ParsetreePackage;%0Aimport org.eclipse.xtext.resource.XtextResource;%0Aimport org.eclipse.xtext.testlanguages.ReferenceGrammarStandaloneSetup;%0Aimport org.eclipse.xtext.tests.AbstractGeneratorTest;%0Aimport org.eclipse.xtext.tests.EcoreModelComparator;%0Aimport org.eclipse.xtext.util.StringInputStream;%0A%0Apublic class OffsetInformationTest extends AbstractGeneratorTest %7B%0A%09@Override%0A%09protected void setUp() throws Exception %7B%0A%09%09super.setUp();%0A%09%09with(ReferenceGrammarStandaloneSetup.class);%0A%09%7D%0A%09%0A%09public void testCheckParsing() throws Exception %7B%0A%09%09String string = %22spielplatz 34 'holla' %7B%5Cn%22%0A%09%09%09+ %22  kind (Horst 3)%5Cn%22%0A%09%09%09+ %22  erwachsener (Julia 45)%5Cn%22%0A%09%09%09+ %22  erwachsener (Herrmann 50)%5Cn%22 %0A%09%09%09+ %22  erwachsener (Herrmann 50)%5Cn%22 %0A%09%09%09+ %22  erwachsener (Herrmann 50)%5Cn%22 %0A%09%09%09+ %22  erwachsener (Herrmann 50)%5Cn%22 %0A%09%09%09+ %22  erwachsener (Herrmann 50)%5Cn%22 %0A%09%09%09+ %22%7D%22;%0A%09%09XtextResource resource = getResource(new StringInputStream(string));%0A%09%09CompositeNode rootNode = resource.getParseResult().getRootNode();%0A%09%09%0A%09%09for (int i=0;i%3Cstring.length()/2;i++) %7B%0A%09%09%09String substring = string.substring(i, string.length()-i);%0A%09%09%09resource.update(i, substring.length(), substring);%0A%09%09%09CompositeNode model = resource.getParseResult().getRootNode();%0A%09%09%09EcoreModelComparator comparator = new EcoreModelComparator();%0A%09%09%09comparator.addIgnoredFeature(ParsetreePackage.eINSTANCE.getAbstractNode_Element());%0A%09%09%09NodeUtil.checkOffsetConsistency(model);%0A%09%09%09assertFalse(comparator.modelsDiffer(rootNode, model));%0A%09%09%7D%0A%09%09%0A%09%7D%0A%7D%0A

test added