Additional test for '- ' completions

This commit is contained in:
Kris De Volder
2017-04-26 08:39:12 -07:00
parent b6d0531625
commit 7c189f7c4a

View File

@@ -3358,12 +3358,21 @@ public class ConcourseEditorTest {
" - put: <*>"
);
//TODO: cases were the CA query is not a empty string (on same line as key / on next line)
// assertContextualCompletions(conText, "<*>",
// "- put: <*>");
//
// assertContextualCompletions(conText, "pu<*>", "- put: <*>");
editor = harness.newEditor(
"jobs:\n" +
"- name: build-docker-image\n" +
" serial: true\n" +
" plan:\n" +
" ag"
);
editor.assertCompletionWithLabel("- aggregate",
"jobs:\n" +
"- name: build-docker-image\n" +
" serial: true\n" +
" plan:\n" +
" - aggregate:\n" +
" - <*>"
);
}
//////////////////////////////////////////////////////////////////////////////