@@ -236,27 +236,27 @@ def onselect(epress, erelease):
236236 do_event (tool , 'press' , xdata = 10 , ydata = 10 , button = 1 )
237237 do_event (tool , 'onmove' , xdata = 100 , ydata = 120 , button = 1 )
238238 do_event (tool , 'release' , xdata = 100 , ydata = 120 , button = 1 )
239- assert ( tool .vmin , tool . vmax ) == (10 , 100 )
239+ assert tool .extents == (10 , 100 )
240240 # Drag inside span
241241 #
242242 # If drag_from_anywhere == True, this will move the span by 10,
243- # giving new value vmin, vmax = 20, 110
243+ # giving new value extents = 20, 110
244244 #
245245 # If drag_from_anywhere == False, this will create a new span with
246- # value vmin, vmax = 25, 35
246+ # value vmin, vmaxextents = 25, 35
247247 do_event (tool , 'press' , xdata = 25 , ydata = 15 , button = 1 )
248248 do_event (tool , 'onmove' , xdata = 35 , ydata = 25 , button = 1 )
249249 do_event (tool , 'release' , xdata = 35 , ydata = 25 , button = 1 )
250250 if drag_from_anywhere :
251- assert ( tool .vmin , tool . vmax ) == (20 , 110 )
251+ assert tool .extents == (20 , 110 )
252252 else :
253- assert ( tool .vmin , tool . vmax ) == (25 , 35 )
253+ assert tool .extents == (25 , 35 )
254254
255255 # Check that in both cases, dragging outside the span draws a new span
256256 do_event (tool , 'press' , xdata = 175 , ydata = 185 , button = 1 )
257257 do_event (tool , 'onmove' , xdata = 185 , ydata = 195 , button = 1 )
258258 do_event (tool , 'release' , xdata = 185 , ydata = 195 , button = 1 )
259- assert ( tool .vmin , tool . vmax ) == (175 , 185 )
259+ assert tool .extents == (175 , 185 )
260260
261261
262262def test_tool_line_handle ():
0 commit comments