(wdriver)
| 7 | |
| 8 | |
| 9 | def test_exec_single_mode(wdriver): |
| 10 | assert wdriver.execute_script("return window.rp.pyExecSingle('1+1')") == 2 |
| 11 | stdout = wdriver.execute_script( |
| 12 | """ |
| 13 | let output = ""; |
| 14 | save_output = function(text) {{ |
| 15 | output += text |
| 16 | }}; |
| 17 | window.rp.pyExecSingle('1+1\\n2+2',{stdout: save_output}); |
| 18 | return output; |
| 19 | """ |
| 20 | ) |
| 21 | assert stdout == "2\n4\n" |
nothing calls this directly
no test coverage detected