Drop the redundant redraw predicate test
This commit is contained in:
1 parent
072f1e31ad
commit
23270e49fb
1 file changed
-15
@@ -322,18 +322,3 @@ impl Default for UiRenderState {
|
|||||||
Self::new()
|
Self::new()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
|
||||||
mod tests {
|
|
||||||
use super::*;
|
|
||||||
|
|
||||||
#[test]
|
|
||||||
fn a_resize_requests_a_frame_without_widget_changes() {
|
|
||||||
let widgets = Widgets::new();
|
|
||||||
let mut state = UiRenderState::new();
|
|
||||||
|
|
||||||
assert!(!state.needs_redraw(None::<&StrongWidget>, &widgets));
|
|
||||||
state.resize((800, 600));
|
|
||||||
assert!(state.needs_redraw(None::<&StrongWidget>, &widgets));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in new issue
Block a user