o
    ¹i  ã                   @   s   g d ¢Z dd„ ZdS ))z
print("a")z
print("b")z
print("c")c                    s  | t ƒ‰‡fdd„‰ ‡fdd„}‡ ‡fdd„}|ƒ  |ƒ dks!J ‚ˆj d¡ |ƒ  ˆj d	¡ ˆj d
¡}|dgd ksAJ dƒ‚|ƒ  |ƒ dksKJ ‚ˆj d¡ ˆj d¡}t|ƒs_J dƒ‚|ƒ  |ƒ dksiJ ‚ˆj d¡ ˆj d¡}|dgd ks€J dƒ‚d S )Nc                    s   ˆ j  d| ¡ d S )Nz3Jupyter.notebook.extend_selection_by(arguments[0]);©ÚbrowserÚexecute_script)Údelta©Únotebook© új/var/www/edux/Edux_v2/venv/lib/python3.10/site-packages/notebook/tests/selenium/test_multiselect_toggle.pyÚextend_selection_by   s   ÿz4test_multiselect_toggle.<locals>.extend_selection_byc                      s   ˆ j  d¡S )Nz4return Jupyter.notebook.get_selected_cells().length;r   r   r   r   r   Ún_selected_cells   s   ÿz1test_multiselect_toggle.<locals>.n_selected_cellsc                      s   ˆ  d¡ ˆ dƒ d S )Né    é   )Ú
focus_cellr   ©r	   r   r   r   Úselect_cells   s   
z-test_multiselect_toggle.<locals>.select_cellsé   z*Jupyter.notebook.execute_selected_cells();z(Jupyter.notebook.toggle_cells_outputs();z9return Jupyter.notebook.get_cells().map(c => c.collapsed)Fz'ensure that all cells are not collapsedz/Jupyter.notebook.toggle_cells_outputs_scroll();zHreturn Jupyter.notebook.get_cells().map(c => c.output_area.scroll_state)z&ensure that all have scrolling enabledz'Jupyter.notebook.clear_cells_outputs();zJreturn Jupyter.notebook.get_cells().map(c => c.output_area.element.html())Ú z!ensure that all cells are cleared)ÚINITIAL_CELLSr   r   Úall)Úprefill_notebookr
   r   Úcell_output_statesÚcell_scrolled_statesÚcell_outputs_clearedr   r   r   Útest_multiselect_toggle   s6   ÿÿÿr   N)r   r   r   r   r   r   Ú<module>   s    