#NEWLINE# def test_x_range_does_not_pan_right_of_x_max( output_file_url , selenium ) : #NEWLINE# #INDENT# x_range_max = 4 #NEWLINE# plot = make_pan_plot_with_callback ( xr = Range1d ( 0 , 3 , bounds = ( None , x_range_max ) ) ) #NEWLINE# save ( plot ) #NEWLINE# selenium . get ( output_file_url ) #NEWLINE# pan_plot ( selenium , pan_x = ( - 200 ) , pan_y = 0 ) #NEWLINE# new_range_end = float ( selenium . execute_script ( 'alert(window.get_x_range_end())' ) ) #NEWLINE# selenium . switch_to_alert ( ) . dismiss ( ) #NEWLINE# assert ( round ( new_range_end ) == x_range_max )