Skip to content

Commit

Permalink
test: Make all color tests have color
Browse files Browse the repository at this point in the history
  • Loading branch information
Muscraft committed Aug 21, 2024
1 parent c5443c4 commit a059969
Show file tree
Hide file tree
Showing 33 changed files with 231 additions and 130 deletions.
15 changes: 9 additions & 6 deletions tests/fixtures/color/ann_eof.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions tests/fixtures/color/ann_eof.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ origin = "Cargo.toml"
label = ""
level = "Error"
range = [4, 4]

[renderer]
color = true
15 changes: 9 additions & 6 deletions tests/fixtures/color/ann_insertion.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions tests/fixtures/color/ann_insertion.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ origin = "Cargo.toml"
label = "'d' belongs here"
level = "Error"
range = [2, 2]

[renderer]
color = true
21 changes: 12 additions & 9 deletions tests/fixtures/color/ann_multiline.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions tests/fixtures/color/ann_multiline.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ fold = false
label = "missing fields `lineno`, `content`"
level = "Error"
range = [31, 128]

[renderer]
color = true
19 changes: 11 additions & 8 deletions tests/fixtures/color/ann_multiline2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions tests/fixtures/color/ann_multiline2.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ fold = false
label = "this should not be on separate lines"
level = "Error"
range = [11, 19]

[renderer]
color = true
15 changes: 9 additions & 6 deletions tests/fixtures/color/ann_removed_nl.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions tests/fixtures/color/ann_removed_nl.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ origin = "Cargo.toml"
label = ""
level = "Error"
range = [4, 5]

[renderer]
color = true
15 changes: 9 additions & 6 deletions tests/fixtures/color/ensure-emoji-highlight-width.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions tests/fixtures/color/ensure-emoji-highlight-width.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ origin = "<file>"
label = ""
level = "Error"
range = [0, 35]

[renderer]
color = true
28 changes: 16 additions & 12 deletions tests/fixtures/color/fold_ann_multiline.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions tests/fixtures/color/fold_ann_multiline.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,6 @@ range = [5, 19]
label = "expected enum `std::option::Option`, found ()"
level = "Error"
range = [22, 766]

[renderer]
color = true
16 changes: 10 additions & 6 deletions tests/fixtures/color/fold_bad_origin_line.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions tests/fixtures/color/fold_bad_origin_line.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ fold = true
label = "error here"
level = "Warning"
range = [2,16]

[renderer]
color = true
Loading

0 comments on commit a059969

Please sign in to comment.