summaryrefslogtreecommitdiff
path: root/support/texlab/tests/test_completion_latex_color.rs
blob: 43c956ef7861bdeb42c10b3549380805f16a707b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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");
}