diff options
Diffstat (limited to 'support/texlab/tests/test_completion_latex_color.rs')
-rw-r--r-- | support/texlab/tests/test_completion_latex_color.rs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/support/texlab/tests/test_completion_latex_color.rs b/support/texlab/tests/test_completion_latex_color.rs new file mode 100644 index 0000000000..43c956ef78 --- /dev/null +++ b/support/texlab/tests/test_completion_latex_color.rs @@ -0,0 +1,23 @@ +pub mod support; + +use support::completion::*; + +const SCENARIO: &str = "latex/color"; + +#[tokio::test] +async fn name() { + let item = run_item(SCENARIO, "foo.tex", 0, 9, "red").await; + verify::text_edit(&item, 0, 7, 0, 9, "red"); +} + +#[tokio::test] +async fn model_definecolor() { + let item = run_item(SCENARIO, "foo.tex", 1, 18, "rgb").await; + verify::text_edit(&item, 1, 18, 1, 18, "rgb"); +} + +#[tokio::test] +async fn model_definecolorset() { + let item = run_item(SCENARIO, "foo.tex", 2, 17, "RGB").await; + verify::text_edit(&item, 2, 16, 2, 17, "RGB"); +} |