", true, c("div", "
"));
+ assertAutoCloseEndTagCompletionWithRange("
Text", null, null);
}
@Test
@@ -209,6 +224,11 @@ public void assertAutoCloseEndTagCompletionWithRange(String xmlText, String expe
fail("Couldn't get position at offset");
}
AutoCloseTagResponse response = languageService.doTagComplete(xmlDocument, position);
+ if(response == null) {
+ assertNull(expectedTextEdit);
+ assertNull(range);
+ return;
+ }
String completionList = response.snippet;
assertEquals(expectedTextEdit, completionList);
assertEquals(range, response.range);