code: def test_xwheel_pan(self, single_plot_page: SinglePlotPage) -> None:
      plot = _make_plot("width")
  
      page = single_plot_page(plot)
  
      # First check that scrolling has no effect before the tool is activated
      page.driver.execute_script(SCROLL(-200))
  
      page.eval_custom_action()
  
      results = page.results
      assert results["xrstart"] == 0
      assert results["xrend"] == 1
      assert results["yrstart"] == 0
      assert results["yrend"] == 1
  
      # Next check that scrolling adjusts the x range after the tool is activated
      [button] = page.get_toolbar_buttons(plot)
      button.click()
  
      page.driver.execute_script(SCROLL(-200))
  
      page.eval_custom_action()
  
      results = page.results
      assert results["xrstart"] < 0
      assert results["xrend"] < 1
      assert results["yrstart"] == 0
      assert results["yrend"] == 1
  
      page.driver.execute_script(SCROLL(400))
  
      page.eval_custom_action()
  
      results = page.results
      assert results["xrstart"] > 0
      assert results["xrend"] > 1
      assert results["yrstart"] == 0
      assert results["yrend"] == 1
  
      assert page.has_no_console_errors()
  
file_path: bokeh/tests/integration/tools/test_wheel_pan_tool.py
imports: from __future__ import annotations
  import pytest
  from bokeh.events import RangesUpdate
  from bokeh.models import ColumnDataSource, CustomJS, Plot, Range1d, Rect, WheelPanTool
  from tests.support.plugins.project import SinglePlotPage
  from tests.support.util.selenium import RECORD, SCROLL
label_desc: Use image node_id 5 for calling the Test_WheelPanTool obj's underlying member method code with example usage: obj.test_xwheel_pan(single_plot_page) without return types