Skip to content

Commit

Permalink
Fix compilation pb
Browse files Browse the repository at this point in the history
  • Loading branch information
angelozerr committed Sep 10, 2018
1 parent c15baa6 commit efef96d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ public static void testCompletionFor(String value, ItemDescription... expectedIt

public static void testCompletionFor(String value, String catalogPath, ItemDescription... expectedItems)
throws BadLocationException {
testCompletionFor(value, catalogPath, null, expectedItems);
testCompletionFor(value, catalogPath, null, null, expectedItems);
}

public static void testCompletionFor(String value, String catalogPath, Integer expectedCount,
public static void testCompletionFor(String value, String catalogPath, String fileURI, Integer expectedCount,
ItemDescription... expectedItems) throws BadLocationException {
int offset = value.indexOf('|');
value = value.substring(0, offset) + value.substring(offset + 1);

TextDocument document = new TextDocument(value, "test://test/test.html");
TextDocument document = new TextDocument(value, fileURI != null ? fileURI : "test://test/test.html");
Position position = document.positionAt(offset);
XMLDocument htmlDoc = XMLParser.getInstance().parse(document);

Expand Down

0 comments on commit efef96d

Please sign in to comment.