-
Notifications
You must be signed in to change notification settings - Fork 385
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce snapshot unit tests for
re_component_ui
(#8546)
Co-authored-by: Andreas Reich <[email protected]>
- Loading branch information
Showing
203 changed files
with
999 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
use re_types::datatypes::Uuid; | ||
use re_viewer_context::MaybeMutRef; | ||
use re_viewer_context::{MaybeMutRef, UiLayout}; | ||
|
||
pub fn view_uuid( | ||
_ctx: &re_viewer_context::ViewerContext<'_>, | ||
ui: &mut egui::Ui, | ||
value: &mut MaybeMutRef<'_, impl std::ops::DerefMut<Target = Uuid>>, | ||
) -> egui::Response { | ||
ui.label(value.as_ref().to_string()) | ||
UiLayout::List.data_label(ui, value.as_ref().to_string()) | ||
} |
3 changes: 3 additions & 0 deletions
3
...sts/snapshots/all_components_list_item_narrow/AggregationPolicy_placeholder.png
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
3
...ui/tests/snapshots/all_components_list_item_narrow/AlbedoFactor_placeholder.png
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
3
...i/tests/snapshots/all_components_list_item_narrow/ApplyLatestAt_placeholder.png
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
3
...t_ui/tests/snapshots/all_components_list_item_narrow/AxisLength_placeholder.png
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
3
.../tests/snapshots/all_components_list_item_narrow/BackgroundKind_placeholder.png
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
3
...ests/snapshots/all_components_list_item_narrow/ClearIsRecursive_placeholder.png
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
3
...ponent_ui/tests/snapshots/all_components_list_item_narrow/Color_placeholder.png
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
3
...ent_ui/tests/snapshots/all_components_list_item_narrow/Colormap_placeholder.png
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
3
...ts/snapshots/all_components_list_item_narrow/ComponentColumnSelector_simple.png
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
3
...i/tests/snapshots/all_components_list_item_narrow/ContainerKind_placeholder.png
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
3
...ent_ui/tests/snapshots/all_components_list_item_narrow/Corner2D_placeholder.png
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
3
...t_ui/tests/snapshots/all_components_list_item_narrow/DepthMeter_placeholder.png
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
3
...sts/snapshots/all_components_list_item_narrow/DisconnectedSpace_placeholder.png
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
3
...nt_ui/tests/snapshots/all_components_list_item_narrow/DrawOrder_placeholder.png
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
3
...nent_ui/tests/snapshots/all_components_list_item_narrow/Enabled_placeholder.png
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
3
...ponent_ui/tests/snapshots/all_components_list_item_narrow/EntityPath_simple.png
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
3
...ent_ui/tests/snapshots/all_components_list_item_narrow/FillMode_placeholder.png
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
3
...nt_ui/tests/snapshots/all_components_list_item_narrow/FillRatio_placeholder.png
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
3
...i/tests/snapshots/all_components_list_item_narrow/FilterByRange_placeholder.png
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
3
...tests/snapshots/all_components_list_item_narrow/FilterIsNotNull_placeholder.png
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
3
...i/tests/snapshots/all_components_list_item_narrow/ForceDistance_placeholder.png
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
3
...tests/snapshots/all_components_list_item_narrow/ForceIterations_placeholder.png
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
3
...i/tests/snapshots/all_components_list_item_narrow/ForceStrength_placeholder.png
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
3
...tests/snapshots/all_components_list_item_narrow/GammaCorrection_placeholder.png
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
3
...i/tests/snapshots/all_components_list_item_narrow/GeoLineString_placeholder.png
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
3
...mponent_ui/tests/snapshots/all_components_list_item_narrow/GraphEdge_simple.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...mponent_ui/tests/snapshots/all_components_list_item_narrow/GraphNode_simple.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...nt_ui/tests/snapshots/all_components_list_item_narrow/GraphType_placeholder.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
..._ui/tests/snapshots/all_components_list_item_narrow/GridColumns_placeholder.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
..._ui/tests/snapshots/all_components_list_item_narrow/GridSpacing_placeholder.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...t_ui/tests/snapshots/all_components_list_item_narrow/HalfSize2D_placeholder.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...t_ui/tests/snapshots/all_components_list_item_narrow/HalfSize3D_placeholder.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...nt_ui/tests/snapshots/all_components_list_item_narrow/ImageFormat_depth_f32.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...mponent_ui/tests/snapshots/all_components_list_item_narrow/ImageFormat_nv12.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...mponent_ui/tests/snapshots/all_components_list_item_narrow/ImageFormat_rgb8.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...ponent_ui/tests/snapshots/all_components_list_item_narrow/ImageFormat_rgba8.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...ests/snapshots/all_components_list_item_narrow/ImageFormat_segmentation_u32.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...ts/snapshots/all_components_list_item_narrow/ImagePlaneDistance_placeholder.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
..._ui/tests/snapshots/all_components_list_item_narrow/Interactive_placeholder.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...onent_ui/tests/snapshots/all_components_list_item_narrow/LatLon_placeholder.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...onent_ui/tests/snapshots/all_components_list_item_narrow/Length_placeholder.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
..._ui/tests/snapshots/all_components_list_item_narrow/LineStrip2D_placeholder.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
..._ui/tests/snapshots/all_components_list_item_narrow/LineStrip3D_placeholder.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...s/snapshots/all_components_list_item_narrow/LockRangeDuringZoom_placeholder.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...s/snapshots/all_components_list_item_narrow/MagnificationFilter_placeholder.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
..._ui/tests/snapshots/all_components_list_item_narrow/MapProvider_placeholder.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
..._ui/tests/snapshots/all_components_list_item_narrow/MarkerShape_placeholder.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...t_ui/tests/snapshots/all_components_list_item_narrow/MarkerSize_placeholder.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...nt_ui/tests/snapshots/all_components_list_item_narrow/MediaType_placeholder.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...mponent_ui/tests/snapshots/all_components_list_item_narrow/Name_placeholder.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...i/tests/snapshots/all_components_list_item_narrow/NearClipPlane_placeholder.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...nent_ui/tests/snapshots/all_components_list_item_narrow/Opacity_placeholder.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...sts/snapshots/all_components_list_item_narrow/PinholeProjection_placeholder.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...nent_ui/tests/snapshots/all_components_list_item_narrow/Plane3D_placeholder.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...snapshots/all_components_list_item_narrow/PoseRotationAxisAngle_placeholder.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...ests/snapshots/all_components_list_item_narrow/PoseRotationQuat_placeholder.png
Oops, something went wrong.
Oops, something went wrong.