Skip to content

Commit fb6e04e

Browse files
committed
Minor typo
1 parent 5fde12f commit fb6e04e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/how_to_test_ui.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use bevy::prelude::*;
22
use bevy_internal::asset::AssetPlugin;
33
use bevy_internal::core_pipeline::CorePipelinePlugin;
44
use bevy_internal::input::InputPlugin;
5-
use bevy_internal::render::options::WgpuOptions;
5+
use bevy_internal::render::settings::WgpuSettings;
66
use bevy_internal::render::RenderPlugin;
77
use bevy_internal::sprite::SpritePlugin;
88
use bevy_internal::text::TextPlugin;
@@ -18,7 +18,7 @@ impl Plugin for HeadlessUiPlugin {
1818
fn build(&self, app: &mut App) {
1919
// These tests are meant to be ran on systems without gpu, or display.
2020
// To make this work, we tell bevy not to look for any rendering backends.
21-
app.insert_resource(WgpuOptions {
21+
app.insert_resource(WgpuSettings {
2222
backends: None,
2323
..Default::default()
2424
})
@@ -65,7 +65,7 @@ fn test_button_translation() {
6565
let button = *query.iter(&app.world).collect::<Vec<_>>().first().unwrap();
6666

6767
// The button's translation got updated because the UI system had a window to place it in.
68-
// If we hadn't added a window, the button's translation would at this point be all zero's.
68+
// If we hadn't added a window, the button's translation would at this point be all zeros.
6969
let button_transform = app.world.entity(button).get::<Transform>().unwrap();
7070
assert_eq!(
7171
button_transform.translation.x.floor() as u32,

0 commit comments

Comments
 (0)