code: def test_center_pan_updates_range_when_selected(
      self, single_plot_page: SinglePlotPage
  ) -> None:
      plot = _make_plot()
  
      page = single_plot_page(plot)
  
      page.drag_canvas_at_position(plot, 500, 200, 100, 0)
  
      page.eval_custom_action()
  
      results = page.results
      assert results["start"] == 0.5
      assert results["end"] == 0.7
  
      page.drag_canvas_at_position(plot, 600, 200, -300, 0)
  
      page.eval_custom_action()
  
      results = page.results
      assert results["start"] == 0.2
      assert results["end"] == 0.4
  
      assert page.has_no_console_errors()
  
file_path: bokeh/tests/integration/tools/test_range_tool.py
imports: from __future__ import annotations
  import pytest
  from bokeh.models import ColumnDataSource, CustomJS, Plot, Range1d, RangeTool, Rect
  from tests.support.plugins.project import SinglePlotPage
  from tests.support.util.selenium import RECORD
label_desc: Use image node_id 4 for calling the Test_RangeTool obj's underlying member method code with example usage: obj.test_center_pan_updates_range_when_selected(single_plot_page) without return types