diff options
Diffstat (limited to 'components/shared/script/tests')
-rw-r--r-- | components/shared/script/tests/compositor.rs | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/components/shared/script/tests/compositor.rs b/components/shared/script/tests/compositor.rs index ee3fd72ad49..c648d5ff681 100644 --- a/components/shared/script/tests/compositor.rs +++ b/components/shared/script/tests/compositor.rs @@ -6,7 +6,7 @@ use euclid::Size2D; use webrender_api::units::LayoutVector2D; use webrender_api::{ExternalScrollId, PipelineId, ScrollLocation, SpatialId}; use webrender_traits::display_list::{ - ScrollSensitivity, ScrollTree, ScrollTreeNodeId, ScrollableNodeInfo, + AxesScrollSensitivity, ScrollSensitivity, ScrollTree, ScrollTreeNodeId, ScrollableNodeInfo, }; fn add_mock_scroll_node(tree: &mut ScrollTree) -> ScrollTreeNodeId { @@ -27,7 +27,10 @@ fn add_mock_scroll_node(tree: &mut ScrollTree) -> ScrollTreeNodeId { Some(ScrollableNodeInfo { external_id: ExternalScrollId(num_nodes as u64, pipeline_id), scrollable_size: Size2D::new(100.0, 100.0), - scroll_sensitivity: ScrollSensitivity::ScriptAndInputEvents, + scroll_sensitivity: AxesScrollSensitivity { + x: ScrollSensitivity::ScriptAndInputEvents, + y: ScrollSensitivity::ScriptAndInputEvents, + }, offset: LayoutVector2D::zero(), }), ) @@ -158,7 +161,10 @@ fn test_scroll_tree_chain_through_overflow_hidden() { .scroll_info .as_mut() .map(|info| { - info.scroll_sensitivity = ScrollSensitivity::Script; + info.scroll_sensitivity = AxesScrollSensitivity { + x: ScrollSensitivity::Script, + y: ScrollSensitivity::Script, + }; }); let (scrolled_id, offset) = scroll_tree |