def test_responsive_maintains_a_minimum_width(output_file_url, selenium):
    # The aspect ratio is portrait but should not allow a width less than 100
    plot = figure(plot_width=600, plot_height=1200, responsive=True)
    plot.scatter([1, 2, 3], [3, 2, 3])
    save(plot)

    # Open the browser with the plot and resize the window small
    selenium.set_window_size(width=100, height=600)
    selenium.get(output_file_url)
    canvas = selenium.find_element_by_tag_name('canvas')
    wait_for_canvas_resize(canvas, selenium)

    # Plot should have been shrunk somewhat
    assert canvas.size['width'] < 600
    assert canvas.size['width'] >= 100
dataset/ETHPy150Open bokeh/bokeh/tests/integration/interaction/test_responsive.py/test_responsive_maintains_a_minimum_width/original