error if bad cursor position
diff --git a/tests/org.eclipse.wst.jsdt.core.tests.compiler/src/org/eclipse/wst/jsdt/core/tests/compiler/parser/AbstractCompletionTest.java b/tests/org.eclipse.wst.jsdt.core.tests.compiler/src/org/eclipse/wst/jsdt/core/tests/compiler/parser/AbstractCompletionTest.java
index a901dd4..cba6393 100644
--- a/tests/org.eclipse.wst.jsdt.core.tests.compiler/src/org/eclipse/wst/jsdt/core/tests/compiler/parser/AbstractCompletionTest.java
+++ b/tests/org.eclipse.wst.jsdt.core.tests.compiler/src/org/eclipse/wst/jsdt/core/tests/compiler/parser/AbstractCompletionTest.java
@@ -170,6 +170,7 @@
 		String[] expectedLabels,
 		String testName) {
 
+	assertTrue("bad cursor location",cursorLocation>=0);
 	CompilerOptions options = new CompilerOptions(getCompilerOptions());
 	CompletionParser parser = 
 		new CompletionParser(