Skip to content

Commit dc5644c

Browse files
committed
increase snapshot width to not break tree on newline
update snapshots
1 parent 26425d1 commit dc5644c

19 files changed

+3
-3
lines changed

egui_json_tree/tests/image_snapshot_tests.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ fn render_object_with_default_expand_none() {
6161
#[test]
6262
fn render_object_search_results() {
6363
// Harness::fit_contents seems to cause the tree to wrap, so set a fixed size here.
64-
let mut harness = Harness::builder().with_size([350., 400.]).build_ui_state(
64+
let mut harness = Harness::builder().with_size([400., 400.]).build_ui_state(
6565
|ui, default_expand| {
6666
JsonTree::new("id", &*OBJECT)
6767
.default_expand(*default_expand)
@@ -100,7 +100,7 @@ fn render_object_search_results() {
100100
#[test]
101101
fn render_object_with_changing_default_expand_automatically_resets_expanded() {
102102
// Harness::fit_contents seems to cause the tree to wrap, so set a fixed size here.
103-
let mut harness = Harness::builder().with_size([350., 400.]).build_ui_state(
103+
let mut harness = Harness::builder().with_size([400., 400.]).build_ui_state(
104104
|ui, default_expand| {
105105
JsonTree::new("id", &*OBJECT)
106106
.default_expand(*default_expand)
@@ -136,7 +136,7 @@ fn render_object_with_changing_default_expand_automatically_resets_expanded() {
136136
#[test]
137137
fn render_object_with_default_expand_to_levels() {
138138
// Harness::fit_contents seems to cause the tree to wrap, so set a fixed size here.
139-
let mut harness = Harness::builder().with_size([350., 400.]).build_ui_state(
139+
let mut harness = Harness::builder().with_size([400., 400.]).build_ui_state(
140140
|ui, level| {
141141
JsonTree::new("id", &*OBJECT)
142142
.default_expand(DefaultExpand::ToLevel(*level))
614 Bytes
Loading
1.1 KB
Loading
1.13 KB
Loading
1.08 KB
Loading
668 Bytes
Loading
614 Bytes
Loading
1.07 KB
Loading
1.05 KB
Loading
1.03 KB
Loading

0 commit comments

Comments
 (0)